/* Мобилка и шапка — правки октябрь 2025 */

/* Бургер не наезжает на контакты; шапка 320/360 как на ~380 */
@media screen and (max-width: 767px) {
	.header-mob .header-top {
		position: relative;
		z-index: 20;
	}

	.header-mob .info-center {
		display: flex;
		flex-wrap: nowrap;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
		min-height: 58px;
	}

	.header-mob .brand-company {
		width: auto !important;
		max-width: calc(100% - 100px);
		flex: 1 1 auto;
		overflow: hidden;
	}

	.header-mob .brand-company img {
		width: auto !important;
		max-width: 200px;
		height: auto;
		display: block;
	}

	.header-mob .info-phone.t-header {
		padding-left: 0;
		flex: 0 0 auto;
		order: 2;
	}

	.header-mob .info-phone.t-header .el-phone {
		font-size: 14px;
		white-space: nowrap;
	}

	.header-mob .sidebar-toggle-btn {
		position: relative;
		z-index: 30;
		flex: 0 0 27px;
		margin: 0;
		order: 3;
	}

	.header-mob .info-contacts,
	.header-mob .search-form,
	.header-mob .info-search {
		display: none !important;
	}

	/* topline fixed — отступ под шапку */
	body {
		padding-top: 0;
	}

	.header-mob .topline {
		position: relative;
		top: auto;
	}
}

@media screen and (max-width: 380px) {
	.header-mob .brand-company img {
		max-width: 170px;
	}

	.header-mob .info-phone.t-header .el-phone b {
		font-size: 13px;
	}
}

@media screen and (max-width: 360px) {
	.header-mob .brand-company img {
		max-width: 150px;
	}

	.header-mob .info-phone.t-header .el-phone b {
		font-size: 12px;
	}
}

@media screen and (max-width: 320px) {
	.header-mob .brand-company img {
		max-width: 130px;
	}

	.header-mob .info-center {
		gap: 6px;
	}

	.header-mob .info-phone.t-header .el-phone b {
		font-size: 11px;
	}
}

/* Пункт «Написать директору» + поиск + Записаться — один ряд */
.header-director-link {
	display: inline-block;
	margin: 0;
	color: rgb(0, 188, 213);
	font-size: 15px;
	font-weight: 600;
	border-bottom: 1px dashed rgb(0, 188, 213);
	white-space: nowrap;
	line-height: 1.2;
	flex: 0 0 auto;
}

.header-director-link:hover {
	color: #0097a7;
	border-bottom-color: #0097a7;
}

.header-actions {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 12px 16px;
	margin: 0;
	flex: 0 0 auto;
}

.header-actions .btn {
	margin: 0;
}

.menu-new__area .header-actions {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 14px 18px;
}

.menu-new__area .header-actions .header-search {
	flex: 0 0 auto;
	position: relative;
	z-index: 2;
}

.menu-new__area .header-actions .header-director-link {
	flex: 0 0 auto;
}

.menu-new__area .header-actions .btn-block,
.menu-new__area .header-actions button.btn {
	width: 291px;
	max-width: 100%;
	flex: 0 0 auto;
	margin: 0;
}

.menu-new__area .header-actions .search-toggle {
	width: 32px !important;
	height: 32px !important;
	min-width: 32px !important;
	padding: 0 !important;
	border-radius: 50% !important;
	flex: 0 0 32px;
}

@media screen and (max-width: 1200px) {
	.menu-new__area .header-actions {
		gap: 10px 12px;
	}

	.menu-new__area .header-actions button.btn {
		width: auto;
		min-width: 200px;
		font-size: 16px;
		padding: 10px 18px;
	}

	.header-director-link {
		font-size: 13px;
	}
}

@media screen and (max-width: 767px) {
	.header-mob .info-phone .header-director-link {
		display: none;
	}

	.header-actions.header-actions {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	.header-actions .header-director-link {
		display: block;
		text-align: center;
		margin: 0;
	}
}

/* Заголовки главной → H2 32px */
.home .we-made__title,
.home .review-block__title,
.home .rated-clinic__title,
.home .price-block__title,
.home .akcii__title,
.page-template-page-home .we-made__title,
.page-template-page-home .review-block__title,
.page-template-page-home .rated-clinic__title,
.page-template-page-home .price-block__title,
.page-template-page-home .akcii__title,
.we-made__title,
.review-block__title,
.rated-clinic__title,
.price-block__title,
.akcii__title {
	font-size: 32px;
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 1em;
}

.home .video__title,
.page-template-page-home .video__title,
.video__title {
	font-size: 32px;
	font-weight: 700;
	line-height: 1.25;
}

/* «Наши специалисты» / видеоблоки: место под стрелки слайдера и ссылку «Все …» */
.section.videoviz .video__title {
	margin: 0 0 78px;
}

@media screen and (max-width: 767px) {
	.we-made__title,
	.review-block__title,
	.rated-clinic__title,
	.price-block__title,
	.akcii__title {
		font-size: 32px;
	}

	.home .video__title,
	.page-template-page-home .video__title,
	.video__title {
		font-size: 32px;
	}

	.section.videoviz .video__title {
		margin-bottom: 56px;
	}
}

/* Стрелки баннера акций — фирменный цвет */
.akcii swiper-container::part(button-prev),
.akcii swiper-container::part(button-next) {
	color: rgb(0, 188, 213);
}

.akcii .swiper-button-prev,
.akcii .swiper-button-next,
.akcii .swiper-button-prev:after,
.akcii .swiper-button-next:after {
	color: rgb(0, 188, 213) !important;
}

.akcii .swiper-pagination-bullet-active {
	background: rgb(0, 188, 213) !important;
}

/* Слайдер статей: стрелки по бокам, пагинация по центру снизу
   Перебивает style.css: .slick-prev/next { bottom:30px; top:unset } */
.section.s-news .s-news-slider,
.section.s-news .s-slider.s-news-slider {
	position: relative !important;
	overflow: visible !important;
	padding: 0 52px;
}

.section.s-news .s-news-slider > .slick-prev,
.section.s-news .s-news-slider > .slick-next,
.section.s-news .s-news-slider .slick-prev,
.section.s-news .s-news-slider .slick-next {
	position: absolute !important;
	top: 106px !important;
	bottom: auto !important;
	transform: translateY(-50%) !important;
	z-index: 6 !important;
	width: 40px !important;
	height: 40px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: #00bcd5 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 188, 213, 0.35);
	font-size: 0 !important;
	line-height: 0 !important;
}

.section.s-news .s-news-slider > .slick-prev,
.section.s-news .s-news-slider .slick-prev {
	left: 0 !important;
	right: auto !important;
}

.section.s-news .s-news-slider > .slick-next,
.section.s-news .s-news-slider .slick-next {
	right: 0 !important;
	left: auto !important;
}

.section.s-news .s-news-slider .slick-prev:before,
.section.s-news .s-news-slider .slick-next:before {
	display: none !important;
	content: none !important;
}

.section.s-news .s-news-slider .slick-prev .icon-page,
.section.s-news .s-news-slider .slick-next .icon-page {
	fill: #fff !important;
	display: block !important;
}

.section.s-news .s-news-slider .slick-prev:hover,
.section.s-news .s-news-slider .slick-next:hover {
	background: #0097a7 !important;
}

.section.s-news .slick-news-arrows {
	position: static !important;
	top: auto !important;
	bottom: auto !important;
	left: auto !important;
	right: auto !important;
	clear: both;
	display: block;
	width: 100%;
	margin-top: 1.25rem !important;
	height: auto !important;
}

.section.s-news .slick-news-arrows:before,
.section.s-news .slick-news-arrows:after {
	display: none !important;
	content: none !important;
}

.section.s-news .slick-news-arrows .el-arrows {
	display: none !important;
}

/* Точки — по центру снизу */
.section.s-news .slick-news-arrows .el-dots {
	float: none !important;
	width: 100% !important;
	height: auto !important;
	text-align: center !important;
	position: relative !important;
}

.section.s-news .slick-news-arrows .el-dots .slick-dots,
.section.s-news .s-news-slider .slick-dots {
	position: static !important;
	display: inline-flex !important;
	justify-content: center;
	align-items: center;
	gap: 6px;
	width: auto !important;
	margin: 0 auto !important;
	padding: 0 !important;
	text-align: center !important;
	bottom: auto !important;
	left: auto !important;
	right: auto !important;
	transform: none !important;
	list-style: none;
}

.section.s-news .slick-news-arrows .el-dots .slick-dots li,
.section.s-news .s-news-slider .slick-dots li {
	width: 10px !important;
	height: 10px !important;
	min-width: 10px;
	min-height: 10px;
	flex: 0 0 10px;
	margin: 0;
}

.section.s-news .slick-news-arrows .el-dots .slick-dots li button,
.section.s-news .s-news-slider .slick-dots li button {
	width: 10px !important;
	height: 10px !important;
	min-width: 10px !important;
	min-height: 10px !important;
	padding: 0 !important;
	border-radius: 50% !important;
	border: none !important;
	background: #c8e8ee !important;
	font-size: 0 !important;
	line-height: 0 !important;
}

.section.s-news .slick-news-arrows .el-dots .slick-dots li button:before,
.section.s-news .s-news-slider .slick-dots li button:before {
	display: none !important;
}

.section.s-news .slick-news-arrows .el-dots .slick-dots li.slick-active button,
.section.s-news .s-news-slider .slick-dots li.slick-active button {
	background: #00bcd5 !important;
}

@media screen and (max-width: 767px) {
	.section.s-news .s-news-slider {
		padding: 0 40px;
	}

	.section.s-news .s-news-slider > .slick-prev,
	.section.s-news .s-news-slider > .slick-next,
	.section.s-news .s-news-slider .slick-prev,
	.section.s-news .s-news-slider .slick-next {
		top: 100px !important;
		width: 36px !important;
		height: 36px !important;
	}
}

@media screen and (max-width: 991px) {
	.header-mob .content-submenu {
		display: none;
		flex-direction: column;
		gap: 0;
		margin: 0 0 20px;
		padding: 0 20px;
		list-style: none;
	}

	.header-mob .content-submenu .nav-menu__li {
		display: block;
		width: 100%;
		margin: 0;
		padding: 0;
	}

	.header-mob .content-submenu .nav-menu__a {
		display: block;
		padding: 12px 0;
		color: #333;
		font-size: 18px;
		line-height: 1.3;
		text-decoration: none;
		border-bottom: 1px solid #e8e8e8;
	}

	.header-mob .content-submenu .nav-menu__li.is-active .nav-menu__a {
		color: #00bcd4;
	}

	.header-mob .main-menu .submenu-link {
		display: block;
		position: relative;
		padding-right: 24px;
	}

	.header-mob .back-button {
		display: none;
		margin: 0 20px 20px;
	}
}

/* Вложенное меню контентных страниц (О клинике, Пациентам) — десктоп */
@media screen and (min-width: 991px) {
	.header-nav-menu .nav-menu__li.t-drop > .sub-menu.content-sub-menu {
		padding: 0;
		width: auto !important;
		left: 0;
		border-radius: 20px;
		box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
		background-color: #eafdff;
		min-width: 0;
	}

	.header-nav-menu .content-sub-menu .nav-menu__ul {
		display: block !important;
		width: 100%;
		padding: 27px 0 44px;
		margin: 0;
		list-style: none;
		box-sizing: border-box;
	}

	.header-nav-menu .content-sub-menu .nav-menu__li {
		float: none;
		display: block !important;
		width: 100%;
		margin: 0;
		padding: 5px 45px;
		text-align: left;
		box-sizing: border-box;
		transition: background 0.3s ease;
	}

	.header-nav-menu .content-sub-menu .nav-menu__li:hover {
		background-color: #c4f4fa;
	}

	.header-nav-menu .content-sub-menu .nav-menu__li:hover .nav-menu__a {
		background-color: transparent !important;
		color: #000 !important;
	}

	.header-nav-menu .content-sub-menu .nav-menu__li:hover:not(.is-active) .nav-menu__a {
		text-decoration: underline;
	}

	.header-nav-menu .content-sub-menu .nav-menu__li.is-active .nav-menu__a {
		text-decoration: none !important;
	}

	.header-nav-menu .content-sub-menu .nav-menu__a {
		display: block;
		width: 100%;
		white-space: nowrap;
		padding: 0 !important;
		background-color: transparent !important;
		color: inherit;
		box-sizing: border-box;
	}

	.header-nav-menu .content-sub-menu .nav-menu__a:after,
	.header-nav-menu .content-sub-menu .nav-menu__a:before {
		display: none !important;
		content: none !important;
	}
}

.we-made__title h2,
.review-block__title h2,
.rated-clinic__title h2,
.price-block__title h2,
.akcii__title h2,
.video__title h2 {
	font-size: inherit;
	font-weight: inherit;
	margin: 0;
	line-height: inherit;
}

/* Страница «Письмо директору» — без горизонтального скролла */
@media screen and (max-width: 1023px) {
	.page-template-page-letter-to-director .wrapper {
		overflow-x: hidden;
	}

	.page-template-page-letter-to-director .letter-card [class*="col-"] {
		width: 100%;
		max-width: 100%;
		padding-left: 0;
		padding-right: 0;
		float: none;
	}
}
