/* Стили на основе universityclassbook.bitrix24site.ru */

/* Шрифт Manrope подключен через font.css в header.php */

/* Основные переменные цветов */
:root {
	--university-primary: #1f496a; /* Темно-бирюзовый для хедера */
	--university-accent: #d4af37; /* Золотистый для акцентов */
	--university-text-light: #f5f1e8; /* Светло-бежевый для текста */
	--university-text-dark: #2c2c2c; /* Темный для основного текста */
	--university-bg-light: #faf9f6; /* Светлый фон */
	--university-button: #0083d1; /* Синий для кнопок */
	--university-button-hover: #0066a3;
}

/* Основные стили body */
body {
	font-family: 'Manrope', sans-serif;
	font-weight: 500;
	color: var(--university-text-dark);
	background-color: var(--university-bg-light);
	line-height: 1.6;
}

/* Заголовки с элегантным шрифтом для учебного портала фотографов */
/* Для заголовков на белом фоне или без фона - цвет #005e80 */
h1, h2, h3, h4, h5, h6 {
	font-family: 'Manrope', sans-serif;
	font-weight: 500;
	color: #005e80;
	line-height: 1.3;
}

h1 {
	font-size: 2.5rem;
	font-weight: 700;
	color: #005e80;
}

h2 {
	font-size: 2rem;
	font-weight: 600;
	color: #005e80;
}

h3 {
	font-size: 1.75rem;
	color: #005e80;
}

h4 {
	font-size: 1.5rem;
	color: #005e80;
}

h5 {
	color: #005e80;
}

h6 {
	color: #005e80;
}

/* Исключение для заголовков в хедере и футере - там белый/светлый текст */
.bx-header-section h1,
.bx-header-section h2,
.bx-header-section h3,
.bx-header-section h4,
.bx-header-section h5,
.bx-header-section h6,
.bx-header h1,
.bx-header h2,
.bx-header h3,
.bx-header h4,
.bx-header h5,
.bx-header h6,
.bx-footer-section h1,
.bx-footer-section h2,
.bx-footer-section h3,
.bx-footer-section h4,
.bx-footer-section h5,
.bx-footer-section h6 {
	color: #ffffff !important;
}

/* Заголовок страницы */
#pagetitle {
	font-family: 'Manrope', sans-serif;
	font-weight: 500;
	color: #005e80;
	line-height: 1.3;
}

/* Хедер - фон на всю ширину */
.bx-header {
	background-color: var(--university-primary) !important;
	width: 100%;
	margin: 0;
	padding: 0;
}

.bx-header-section {
	background-color: rgba(31, 73, 106, 1) !important;
	padding: 1rem 0;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	color: #ffffff !important;
	width: 100%;
	max-width: 100%;
}

.bx-header-section.container {
	width: 100%;
	max-width: 100%;
	padding-left: 15px;
	padding-right: 15px;
	background-color: rgba(31, 73, 106, 1) !important;
}

.bx-header-logo {
	order: 1;
}

.bx-header-logo a {
	color: #ffffff !important;
	text-decoration: none;
	font-family: 'Manrope', sans-serif;
	font-size: 1.5rem;
	font-weight: 500;
	transition: opacity 0.3s ease;
}

.bx-header-logo a:hover {
	opacity: 0.8;
}



/* Стили для мобильного логотипа */
.bx-logo-block.d-block.d-md-none {
	width: 100px !important;
	display: flex;
	justify-content: center;
}

/* Контакты в хедере - белый текст */
.bx-header-section,
.bx-header-section .row,
.bx-header-section .col,
.bx-header-section .col-auto,
.bx-header-section .col-12 {
	color: #ffffff !important;
}

/* Стили для меню - hover эффект */
.bx-nav-1-lvl-link-text:hover,
.bx-nav-1-lvl:hover .bx-nav-1-lvl-link-text,
.bx-nav-1-lvl.bx-hover .bx-nav-1-lvl-link-text,
.bx-nav-1-lvl.bx-active .bx-nav-1-lvl-link-text {
	color: #1F496A !important;
}

.bx-nav-2-lvl-link:hover,
.bx-nav-2-lvl:hover .bx-nav-2-lvl-link {
	color: #1F496A !important;
}

/* Цвет текста во всплывающем меню второго уровня */
.bx-nav-2-lvl-link-text {
	color: #1F496A !important;
}

.bx-header-phone-number,
.bx-header-worktime,
.bx-header-section span,
.bx-header-section a:not(.bx-logo-block) {
	color: #ffffff;
}

.bx-header-phone-icon {
	filter: brightness(0) invert(1);
}

.bx-worktime-title {
	color: rgba(255, 255, 255, 0.8) !important;
}

.bx-worktime-schedule {
	color: #ffffff !important;
}

/* Меню */
.bx-header-section .navbar {
	background-color: transparent;
}

.bx-header-section .navbar-nav .nav-link {
	color: #ffffff !important;
	font-family: 'Manrope', sans-serif;
	font-weight: 500;
	font-size: 1rem;
	padding: 0.5rem 1rem;
	transition: color 0.3s ease;
}

.bx-header-section .navbar-nav .nav-link:hover {
	color: var(--university-accent) !important;
}

/* Стили для корзины и личного кабинета в хедере */
.bx-header-personal,
.bx-header-personal *,
.bx-header-personal a,
.bx-header-personal span {
	color: #ffffff !important;
}

.bx-header-personal .basket-line,
.bx-header-personal .basket-line * {
	color: #ffffff !important;
}

/* Стили для иконки авторизации в мобильной версии */
.bx-header-mobile-auth {
	z-index: 100;
}

.bx-mobile-auth-link {
	display: flex;
	align-items: center;
	color: #ffffff !important;
	text-decoration: none;
	font-family: 'Manrope', sans-serif;
	font-size: 0.85rem;
	font-weight: 500;
	transition: color 0.3s ease, opacity 0.3s ease;
	padding: 5px 8px;
	border-radius: 4px;
	/*  */
}

.bx-mobile-auth-link:hover {
	color: var(--university-accent) !important;
	opacity: 0.9;
	text-decoration: none;
	background-color: rgba(255, 255, 255, 0.15);
}

.bx-mobile-auth-link svg {
	fill: currentColor;
	width: 20px;
	height: 20px;
	margin-right: 4px;
	flex-shrink: 0;
}

.bx-mobile-auth-text {
	white-space: nowrap;
}

@media (max-width: 767.98px) {
	.bx-header-mobile-auth {
		right: 15px !important;
		left: auto !important;
		top: 50% !important;
		transform: translateY(-50%) !important;
	}
	
	.bx-header-logo {
		display: flex;
		justify-content: center;
		padding-right: 0;
		padding-left: 0;
	}

	.bx-header-logo .bx-logo-block.d-block.d-md-none {
		width: 100% !important;
		justify-content: center;
	}
}

/* Все ссылки в хедере белые */
.bx-header-section a {
	color: #ffffff !important;
}

.bx-header-section a:hover {
	color: rgba(255, 255, 255, 0.8) !important;
}

/* Основной контент */
.bx-content-section {
	background-color: #ffffff;
	padding: 2rem 0;
}

.workarea {
	background-color: var(--university-bg-light);
}

/* Полноширинный баннер на главной — на всю ширину, вплотную к меню, помещается в первый экран */
.workarea > .bx-banner-fullwidth {
	margin-top: 0;
	margin-bottom: 0;
}

/* Убираем зазор между баннером и блоком соцсетей — контент вплотную к баннеру */
.workarea > .bx-banner-fullwidth + .container.bx-content-section {
	padding-top: 0;
}

.bx-banner-fullwidth {
	width: 100%;
	max-width: 100%;
	max-height: 69vh; /* 60vh + 15% */
	margin: 0;
	padding: 0;
	overflow: hidden;
	box-sizing: border-box;
}

.bx-banner-fullwidth .carousel,
.bx-banner-fullwidth .carousel-inner,
.bx-banner-fullwidth .carousel-item,
.bx-banner-fullwidth .bx-slider-present,
.bx-banner-fullwidth .d-block.w-100,
.bx-banner-fullwidth img {
	width: 100% !important;
	max-width: none !important;
}

.bx-banner-fullwidth .carousel-inner,
.bx-banner-fullwidth .carousel-item {
	height: 100%;
	min-height: 55vh;
	max-height: 69vh;
}

.bx-banner-fullwidth .carousel-item [class*="bx-slider-present"],
.bx-banner-fullwidth .carousel-item > div {
	position: relative;
	height: 100%;
	min-height: 55vh;
	max-height: 69vh;
}

.bx-banner-fullwidth .carousel-item img {
	object-fit: cover;
	object-position: center;
	height: 69vh;
	max-height: 69vh;
}

/* Убираем ограничение контейнера внутри баннера — баннер на всю ширину */
.bx-banner-fullwidth .container {
	max-width: none !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* Контент баннера — как в лендинге: цвет и выравнивание по центру, max-width 800px */
.bx-banner-fullwidth .bx-advertisingbanner-content {
	position: absolute !important;
	top: 50% !important;
	left: 50% !important;
	transform: translate(-50%, -50%) !important;
	right: auto !important;
	width: 100%;
	max-width: 800px;
	margin: 0 !important;
	padding: 1.5rem 1rem;
	text-align: center !important;
	z-index: 3;
	box-sizing: border-box;
	/* Текст ограничен шириной блока и переносится при нехватке места */
	overflow-wrap: break-word;
	word-wrap: break-word;
	min-width: 0;
}

.bx-banner-fullwidth .bx-advertisingbanner-text-title {
	display: block !important;
	width: 100%;
	max-width: 100%;
	text-align: center !important;
	font-size: 2.29rem !important; /* g-font-size-32 ≈ 2.28571rem */
	font-weight: 700 !important;   /* g-font-weight-700 */
	line-height: 1.2 !important;  /* g-line-height-1 */
	text-transform: uppercase !important;
	color: rgb(255, 233, 173) !important;
	margin: 0 0 1.25rem !important;
	font-family: 'Manrope', sans-serif;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
	/* Перенос строки, если не помещается */
	white-space: normal !important;
	overflow-wrap: break-word;
	word-wrap: break-word;
	box-sizing: border-box;
}

.bx-banner-fullwidth .bx-advertisingbanner-text-block {
	display: block !important;
	width: 100%;
	max-width: 100%;
	text-align: center !important;
	font-size: 1rem !important;
	line-height: 1.6 !important;
	color: rgb(255, 233, 173) !important;
	margin: 0 0 1.5rem !important;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
	white-space: normal !important;
	overflow-wrap: break-word;
	word-wrap: break-word;
	box-sizing: border-box;
}

.bx-banner-fullwidth .bx-advertisingbanner-btn-container {
	text-align: center !important;
	margin-top: 0.5rem;
}

.bx-banner-fullwidth .bx-advertisingbanner-btn-container a,
.bx-banner-fullwidth .bx-advertisingbanner-btn-container .btn {
	display: inline-block;
	padding: 0.75rem 2rem;
	font-size: 0.9rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	background-color: var(--university-button, #0083d1);
	border: none;
	border-radius: 4px;
	color: #fff !important;
	text-decoration: none;
	transition: all 0.2s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.bx-banner-fullwidth .bx-advertisingbanner-btn-container a:hover,
.bx-banner-fullwidth .bx-advertisingbanner-btn-container .btn:hover {
	background-color: var(--university-button-hover, #006ba8);
	color: #fff !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Кнопки */
.btn-primary,
.btn.btn-primary {
	background-color: var(--university-button);
	border-color: var(--university-button);
	color: #ffffff;
	font-family: 'Manrope', sans-serif;
	font-weight: 500;
	padding: 0.75rem 2rem;
	border-radius: 4px;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.btn-primary:hover,
.btn.btn-primary:hover {
	background-color: var(--university-button-hover);
	border-color: var(--university-button-hover);
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 131, 209, 0.3);
}

.btn-primary:focus,
.btn.btn-primary:focus {
	box-shadow: 0 0 0 0.2rem rgba(0, 131, 209, 0.5);
}

/* Ссылки */
a {
	color: var(--university-button);
	transition: color 0.3s ease;
}

a:hover {
	color: var(--university-button-hover);
	text-decoration: none;
}

/* Формы */
.form-control:focus {
	border-color: var(--university-button);
	box-shadow: 0 0 0 0.2rem rgba(0, 131, 209, 0.25);
}

/* Футер */
.bx-footer-bg {
	background-color: var(--university-primary) !important;
}

.bx-footer-section.bg-dark {
	background-color: #1a3d57 !important;
}

.bx-footer-section.bg-secondary {
	background-color: #152d3f !important;
}

.bx-footer-section .text-white,
.bx-footer-section .text-light {
	color: var(--university-text-light) !important;
}

.bx-footer-section a {
	color: var(--university-text-light);
	transition: color 0.3s ease;
}

.bx-footer-section a:hover {
	color: var(--university-accent);
}

/* Заголовки блоков - цвет #005e80 для белого фона */
.bx-block-title {
	color: #005e80 !important;
	font-family: 'Manrope', sans-serif;
	font-weight: 500;
}

/* Исключение для футера - там белый текст */
.bx-footer-section .bx-block-title {
	color: #ffffff !important;
}

/* Боковая панель */
.sidebar-block-title {
	color: #005e80;
	font-family: 'Manrope', sans-serif;
	font-weight: 500;
}

.sidebar {
	background-color: transparent !important;
	padding: 1.5rem;
	border-radius: 4px;
	box-shadow: none;
}

/* Карточки и блоки */
.card {
	border: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	border-radius: 8px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
	transform: translateY(-4px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Хлебные крошки */
.breadcrumb {
	background-color: transparent;
	padding: 0;
}

.breadcrumb-item a {
	color: var(--university-button);
}

.breadcrumb-item.active {
	color: var(--university-text-dark);
}

/* Поиск */
.form-control {
	border-radius: 4px;
	border: 1px solid #ddd;
	padding: 0.75rem 1rem;
}

/* Адаптивность */
@media (max-width: 767px) {
	h1 {
		font-size: 2rem;
	}
	
	h2 {
		font-size: 1.75rem;
	}
	
	.bx-header-section {
		padding: 0.75rem 0;
	}
	
	.bx-header-logo a {
		font-size: 1.25rem;
	}
}

/* Дополнительные стили для улучшения внешнего вида */
.text-primary {
	color: var(--university-button) !important;
}

.bg-primary {
	background-color: var(--university-button) !important;
}

.border-primary {
	border-color: var(--university-button) !important;
}

/* Стили для секций */
.section-title {
	font-family: 'Manrope', sans-serif;
	font-size: 2.5rem;
	font-weight: 500;
	color: #005e80;
	margin-bottom: 2rem;
	text-align: center;
}

.section-subtitle {
	font-family: 'Manrope', sans-serif;
	font-size: 1.1rem;
	font-weight: 500;
	color: #005e80;
	text-align: center;
	margin-bottom: 3rem;
}

/* Подзаголовки на белом фоне */
.subtitle,
.sub-title,
h2 + p,
h3 + p {
	color: #005e80;
}

/* Исключение для подзаголовков в хедере и футере */
.bx-header-section .subtitle,
.bx-header-section .sub-title,
.bx-footer-section .subtitle,
.bx-footer-section .sub-title {
	color: #ffffff !important;
}

/* Анимации */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.fade-in {
	animation: fadeIn 0.6s ease-out;
}

/* Изображения в детальном просмотре - на всю ширину контейнера */
.bx-content .detail_picture,
.bx-content img.detail_picture,
.new-detail .detail_picture,
.new-detail img.detail_picture,
img.detail_picture {
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	display: block;
	margin: 0 auto 1.5rem auto;
	border-radius: 4px;
}

/* Контейнер с контентом */
.bx-content {
	width: 100%;
	max-width: 100%;
}

/* Скрытие sidebar на странице детального просмотра курса */
body:has(.news-detail) .sidebar {
	display: none !important;
}

body:has(.news-detail) .bx-content {
	width: 100% !important;
	max-width: 100% !important;
	flex: 0 0 100% !important;
}

/* Альтернативный способ для старых браузеров */
.news-detail ~ .sidebar,
.news-detail + .sidebar {
	display: none !important;
}

/* Стили для блока документов курса */
.course-documents {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid #e0e0e0;
}

.course-documents h3 {
	color: #005e80;
	margin-bottom: 1.5rem;
	font-family: 'Manrope', sans-serif;
	font-weight: 500;
}

.course-documents ul {
	list-style: none;
	padding: 0;
}

.course-documents li {
	margin-bottom: 1rem;
	padding: 0.75rem;
	background-color: #f5f5f5;
	border-radius: 4px;
	transition: background-color 0.3s ease;
}

.course-documents li:hover {
	background-color: #eeeeee;
}

.course-documents a {
	color: #0083d1;
	text-decoration: none;
	display: flex;
	align-items: center;
	font-weight: 500;
}

.course-documents a:hover {
	color: #0066a3;
	text-decoration: underline;
}

.course-documents svg {
	margin-right: 10px;
	flex-shrink: 0;
}

.course-documents span:last-child {
	margin-left: auto;
	color: #666;
	font-size: 0.9em;
	font-weight: normal;
}

/* Стили для карточек курсов - импорт из компонента */
@import url('../.default/components/bitrix/catalog.section.list/course_cards/style.css');

/* Стили для страницы раздела курса */
@import url('../.default/components/bitrix/news/course/section_style.css');

/* Стили для плитки элементов курса */
@import url('../.default/components/bitrix/news.list/course_tile/style.css');

/* ============================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ============================================ */

/* Скрываем sidebar на странице курсов в мобильной версии */
@media (max-width: 767.98px) {
	.course-section-sidebar {
		display: none !important;
	}
	
	/* Скрываем футер в мобильной версии */
	.bx-footer-section.bx-footer-bg {
		display: none !important;
	}
	
	/* Скрываем некоторые элементы хедера в мобильной версии */
	.bx-header-section .row.mb-4 {
		display: none !important;
	}
	
	.bx-header-section .row.mb-4 .col {
		display: none !important;
	}
	
	.bx-header-contact .d-flex {
		display: none !important;
	}
	
	/* Скрываем поиск в мобильной версии */
	.bx-searchtitle,
	#search {
		display: none !important;
	}
	
	/* Скрываем хлебные крошки в мобильной версии */
	.bx-header-section .row.mb-4:has(#navigation),
	#navigation {
		display: none !important;
	}
	
	/* Скрываем весь футер в мобильной версии */
	.bx-footer-section.py-5.bg-dark {
		display: none !important;
	}
	
	/* Скрываем элементы футера в мобильной версии */
	.bx-footer-section.py-5.bg-dark .col-sm-6.col-lg-3.order-lg-1.order-4 {
		display: none !important;
	}
	
	.bx-footer-section.py-5.bg-dark .col-sm-6.col-lg-3.order-lg-4.order-3 {
		display: none !important;
	}
	
	.bx-footer-section.py-5.bg-dark .col-sm-6.col-lg-3.order-lg-2.order-1 {
		display: none !important;
	}
}

/* Стили для мобильного меню с крестиком */
.bx-aside-nav {
	position: relative;
	padding-top: 60px; /* Отступ сверху для крестика */
}

/* Стили для блока авторизации в мобильном меню */
.bx-aside-nav-auth {
	padding: 20px 15px;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	color: rgba(76, 92, 101, 1);
	background-color: rgba(76, 92, 101, 0.8);
}

.bx-aside-nav-auth .basket-line {
	color: #ffffff !important;
}

.bx-aside-nav-auth .basket-line * {
	color: #ffffff !important;
}

.bx-aside-nav-auth a {
	color: #ffffff !important;
	text-decoration: none;
}

.bx-aside-nav-auth a:hover {
	color: var(--university-accent) !important;
}

.bx-aside-nav-close {
	position: absolute;
	top: 15px;
	right: 15px;
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.2);
	border: 2px solid #fff;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1700;
	transition: all 0.3s ease;
}

.bx-aside-nav-close:hover {
	background: rgba(255, 255, 255, 0.3);
	transform: scale(1.1);
}

.bx-aside-nav-close::before,
.bx-aside-nav-close::after {
	content: '';
	position: absolute;
	width: 20px;
	height: 2px;
	background: #fff;
	transform: rotate(45deg);
}

.bx-aside-nav-close::after {
	transform: rotate(-45deg);
}

/* Дополнительные элементы в мобильном меню */
.bx-aside-nav-extra {
	padding: 20px 15px;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	margin-top: 20px;
}

.bx-aside-nav-extra a {
	color: #fff;
	text-decoration: none;
	padding: 10px 15px;
	display: block;
	border-radius: 4px;
	transition: background 0.3s ease;
}

.bx-aside-nav-extra a:hover {
	background: rgba(255, 255, 255, 0.1);
}

/* Поиск в мобильном меню */
.bx-aside-nav-search {
	padding: 20px 15px;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	margin-top: 0;
	order: 999; /* Перемещаем в конец */
}

.bx-aside-nav-search .bx-searchtitle {
	display: block !important;
}

.bx-aside-nav-search .input-group {
	max-width: 400px; /* Ширина как у ссылок меню */
	margin: 0 auto;
}

.bx-aside-nav-search .form-control {
	background: #fff !important;
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: #333 !important;
	width: calc(100% - 50px);
}

.bx-aside-nav-search .form-control::placeholder {
	color: #999;
}

.bx-aside-nav-search .form-control:focus {
	background: #fff !important;
	border-color: rgba(255, 255, 255, 0.5);
	color: #333 !important;
}

.bx-aside-nav-search .input-group-append {
	width: 50px;
}

.bx-aside-nav-search .btn-primary {
	background: rgba(255, 255, 255, 0.2);
	border-color: rgba(255, 255, 255, 0.3);
	width: 100%;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.bx-aside-nav-search .btn-primary:hover {
	background: rgba(255, 255, 255, 0.3);
}

/* Иконка лупы на кнопке поиска */
.bx-aside-nav-search .search-title-button {
	position: relative;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M7 12C9.76142 12 12 9.76142 12 7C12 4.23858 9.76142 2 7 2C4.23858 2 2 4.23858 2 7C2 9.76142 4.23858 12 7 12Z' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M11 11L14 14' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 18px 18px;
}

.bx-aside-nav-search .search-title-button::before {
	content: '';
}

.bx-aside-nav-search .search-title-button:empty::after {
	content: '';
}

/* Скрываем дополнительные элементы меню */
.bx-aside-nav-extra {
	display: none !important;
}

/* Исправление ширины ссылок в мобильном меню */
.bx-aside-nav .bx-nav-1-lvl {
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

.bx-aside-nav .bx-nav-1-lvl-link,
.bx-aside-nav .bx-nav-1-lvl > a {
	width: calc(100% - 30px) !important; /* Вся ширина с отступами по 15px с каждой стороны */
	max-width: calc(100% - 30px) !important;
	margin: 0 15px !important; /* Отступы с обеих сторон */
	padding: 12px 15px !important; /* Внутренние отступы */
	box-sizing: border-box;
	display: block !important;
}

.bx-aside-nav .bx-nav-1-lvl-link-text {
	padding: 0 !important;
}


/* Изменение ширины мобильного меню - на всю ширину */
.bx-aside-nav {
	width: 100% !important;
	max-width: 100% !important;
}

/* Скрытие пункта "ГЛАВНАЯ" в мобильной версии */
@media (max-width: 767.98px) {
	.bx-aside-nav #menu-item-1,
	.bx-aside-nav li#menu-item-1 {
		display: none !important;
	}
	
	/* Скрытие списка меню в мобильной версии */
	.bx-nav-list-1-lvl {
		/* display: none !important; */
	}
}


.bx-aside-nav-control.bx-opened .bx-nav-bars {
	display: block !important;
}

/* В мобильной версии иконка бургера видна только при открытом меню */
@media (max-width: 767.98px) {

	
	.bx-aside-nav-control.bx-opened .bx-nav-bars {
		display: block !important;
	}
}

/* Изменение позиции иконки меню */
.bx-nav-bars {
	left: 21px !important;
}

/* Скрытие строки с навигацией (breadcrumb), но не меню */
/* Меню имеет класс d-none d-md-block и содержит .bx-top-nav-container */
/* Поиск перенесён в блок .bx-header-contact */
.bx-header-section .row.mb-4:has(#navigation):not(:has(.bx-top-nav-container)) {
	display: none !important;
}

/* Альтернативный вариант для браузеров без поддержки :has() */
.bx-header-section #navigation {
	display: none !important;
}

/* Поиск в шапке (блок .bx-header-contact) */
.bx-header-search #search {
	display: block !important;
}
.bx-header-search .input-group {
	min-width: 180px;
}
.bx-header-search .form-control {
	min-width: 120px;
}

/* Изменение цвета фона для блока рассылки в футере */
.bx-footer-section .col-sm-6.col-lg-3.order-lg-4.order-3 > div[style*="padding: 20px"],
.bx-footer-section .col-sm-6.col-lg-3.order-lg-4.order-3 > div {
	background-color: rgba(0, 93, 127, 1) !important;
	background: rgba(0, 93, 127, 1) !important;
}

/* Нижняя навигация для мобильных устройств */
.mobile-bottom-nav {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: #fff;
	border-top: 1px solid #e0e0e0;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
	z-index: 1000;
	display: none;
	padding: 10px 0;
}

@media (max-width: 767.98px) {
	.mobile-bottom-nav {
		display: flex;
		justify-content: space-around;
		align-items: center;
	}
	
	/* Добавляем отступ снизу для контента, чтобы не перекрывался нижней навигацией */
	body {
		padding-bottom: 70px;
	}
}

.mobile-bottom-nav-item {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	color: #666;
	padding: 5px;
	transition: color 0.3s ease;
	position: relative;
}

.mobile-bottom-nav-item:hover,
.mobile-bottom-nav-item.active {
	color: #005e80;
}

.mobile-bottom-nav .bx-mobile-auth-link:hover,
.mobile-bottom-nav .bx-mobile-auth-link:focus,
.mobile-bottom-nav .bx-mobile-auth-link:active {
	color: #666;
	background-color: transparent;
	opacity: 1;
}

.mobile-bottom-nav .bx-mobile-auth-link .mobile-bottom-nav-item-text {
	color: #4c5c65;
}

.mobile-bottom-nav .bx-mobile-auth-link:hover .mobile-bottom-nav-item-text,
.mobile-bottom-nav .bx-mobile-auth-link:focus .mobile-bottom-nav-item-text,
.mobile-bottom-nav .bx-mobile-auth-link:active .mobile-bottom-nav-item-text {
	color: #005e80;
}

.mobile-bottom-nav-item-icon {
	font-size: 24px;
	margin-bottom: 5px;
}

.mobile-bottom-nav-item-icon i {
	font-size: 24px;
}

.mobile-bottom-nav-item-text {
	font-size: 12px;
	font-family: 'Manrope', sans-serif;
	font-weight: 500;
}

.mobile-bottom-nav-item-badge {
	position: absolute;
	top: 0;
	right: 15px;
	background: #d32f2f;
	color: #fff;
	border-radius: 50%;
	width: 18px;
	height: 18px;
	font-size: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
}

/* Стили для логотипа в нижнем меню */
.mobile-bottom-nav-item:first-child {
	display: flex;
	align-items: center;
	justify-content: center;
}

.mobile-bottom-nav-item:first-child img {
	max-width: 60px;
	max-height: 40px;
	object-fit: contain;
}


/* Стили для заголовков полей формы поддержки */
.support-ticket-edit-form .field-name,
.support-ticket-edit-form .field-name.border-none {
	width: 100px !important;
	display: flex;
	justify-content: center;
	align-items: flex-end;
}

/* Кнопки и действия форм техподдержки */
#bx_eshop_wrap .bx-content input[type="submit"][name="edit"][value*="Создать"],
#bx_eshop_wrap .bx-interface-filter input[type="submit"],
#bx_eshop_wrap .bx-interface-filter input[type="button"],
#homework-form-container input[type="submit"],
#homework-form-container input[type="reset"],
#homework-form-container input[type="button"],
.support-ticket-edit-form input[type="submit"],
.support-ticket-edit-form input[type="reset"],
.support-ticket-edit-form input[type="button"],
#bx_eshop_wrap .bx-content.col-12 form > input[type="submit"],
#bx_eshop_wrap .bx-content.col-12 form > input[type="reset"],
#bx_eshop_wrap .webform-container input[type="submit"],
#bx_eshop_wrap .webform-container input[type="reset"],
#submit-homework-btn {
	display: inline-block;
	background-color: #0083d1;
	border: 1px solid #0083d1;
	color: #fff;
	font-family: 'Manrope', sans-serif;
	font-weight: 500;
	padding: 0.5rem 1rem;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

#bx_eshop_wrap .bx-content input[type="submit"][name="edit"][value*="Создать"]:hover,
#bx_eshop_wrap .bx-interface-filter input[type="submit"]:hover,
#bx_eshop_wrap .bx-interface-filter input[type="button"]:hover,
#homework-form-container input[type="submit"]:hover,
#homework-form-container input[type="reset"]:hover,
#homework-form-container input[type="button"]:hover,
.support-ticket-edit-form input[type="submit"]:hover,
.support-ticket-edit-form input[type="reset"]:hover,
.support-ticket-edit-form input[type="button"]:hover,
#bx_eshop_wrap .bx-content.col-12 form > input[type="submit"]:hover,
#bx_eshop_wrap .bx-content.col-12 form > input[type="reset"]:hover,
#bx_eshop_wrap .webform-container input[type="submit"]:hover,
#bx_eshop_wrap .webform-container input[type="reset"]:hover,
#submit-homework-btn:hover {
	background-color: #006fb3;
	border-color: #006fb3;
}

/* Убираем кнопку "Применить" в форме обращения */
#bx_eshop_wrap .bx-content.col-12 form > input[type="submit"][name="apply"] {
	display: none !important;
}

/* Убираем кнопку "Применить" в веб-форме */
#bx_eshop_wrap .webform-container input[type="submit"][name="web_form_apply"] {
	display: none !important;
}

/* Мобильная версия: таблица на всю ширину и горизонтальный скролл при переполнении */
@media (max-width: 768px) {
	#bx_eshop_wrap .bx-content.col-12 .main-grid-container,
	#bx_eshop_wrap .bx-content.col-12 .main-grid-filter {
		width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	#bx_eshop_wrap .bx-content.col-12 .main-grid-table {
		width: 100%;
		min-width: 700px;
	}

	#bx_eshop_wrap .bx-content.col-12 .bx-interface-grid {
		display: block;
		width: 100%;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	#bx_eshop_wrap .bx-content.col-12 .bx-interface-grid > table,
	#bx_eshop_wrap .bx-content.col-12 table.bx-interface-grid {
		width: 100%;
		min-width: 640px;
	}

	#bx_eshop_wrap .bx-content.col-12 .bx-interface-filter input[type="text"],
	#bx_eshop_wrap .bx-content.col-12 .bx-interface-filter select {
		width: 50%;
		font-size: 12px;
	}

	/* Мобильная версия: скрываем колонки "Сооб.", "Изменено", "Статус" */
	#bx_eshop_wrap #ticket_grid tr > td:nth-child(4),
	#bx_eshop_wrap #ticket_grid tr > td:nth-child(6),
	#bx_eshop_wrap #ticket_grid tr > td:nth-child(7),
	#bx_eshop_wrap #ticket_grid tr > th:nth-child(4),
	#bx_eshop_wrap #ticket_grid tr > th:nth-child(6),
	#bx_eshop_wrap #ticket_grid tr > th:nth-child(7) {
		display: none;
	}

	#bx_eshop_wrap #ticket_grid {
		table-layout: fixed;
	}

	#bx_eshop_wrap #ticket_grid tr > td:nth-child(1),
	#bx_eshop_wrap #ticket_grid tr > th:nth-child(1) {
		width: 70px;
		max-width: 70px;
	}

	#bx_eshop_wrap #ticket_grid tr > td:nth-child(4),
	#bx_eshop_wrap #ticket_grid tr > th:nth-child(4) {
		width: 110px;
		max-width: 110px;
	}

	#bx_eshop_wrap #ticket_grid tr > td:nth-child(7),
	#bx_eshop_wrap #ticket_grid tr > th:nth-child(7) {
		width: 95px;
		max-width: 95px;
	}

	#bx_eshop_wrap #ticket_grid tr > td:nth-child(1),
	#bx_eshop_wrap #ticket_grid tr > td:nth-child(4),
	#bx_eshop_wrap #ticket_grid tr > td:nth-child(7),
	#bx_eshop_wrap #ticket_grid tr > th:nth-child(1),
	#bx_eshop_wrap #ticket_grid tr > th:nth-child(4),
	#bx_eshop_wrap #ticket_grid tr > th:nth-child(7) {
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	/* Мобильная версия: скрываем колонку статуса обращения */
	#bx_eshop_wrap #ticket_grid tr > td[oncontextmenu*="STATUS_NAME"],
	#bx_eshop_wrap #ticket_grid tr > th[oncontextmenu*="STATUS_NAME"] {
		display: none;
	}
}

/* Блок «Мы в соцсетях» в стиле universityclassbook.bitrix24site.ru, вплотную к баннеру */
.socnet-cta-block {
	--socnet-bg: #005e80;
	background-color: var(--socnet-bg);
	padding: 1.875rem 1.875rem 6.875rem;
	margin-left: calc(-50vw + 50%);
	margin-right: calc(-50vw + 50%);
	margin-top: 0;
	width: 100vw;
	box-sizing: border-box;
	margin-bottom: 1rem;
}

.socnet-cta-block-container {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 15px;
}

.socnet-cta-block-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1rem;
}

.socnet-cta-title {
	font-family: 'Manrope', sans-serif;
	font-weight: 500;
	font-size: 1.125rem;
	color: #ffffff;
	width: 100%;
	text-align: center;
	margin-bottom: 1rem;
}

.socnet-cta-subtitle {
	font-family: 'Manrope', sans-serif;
	font-weight: 400;
	font-size: 1rem;
	color: #ffffff;
	width: 100%;
	text-align: center;
	margin: 0;
	line-height: 1.5;
	opacity: 0.95;
}

/* Контейнер карточек как на референсе: g-rounded-100 g-px-25 g-py-25 */
.socnet-cta-cards {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1.25rem;
	max-width: 100%;
}

/* Овальная кнопка-карточка: g-rounded-50 g-px-12 g-py-12, max-width 265px */
.socnet-cta-card {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 1.25rem;
	max-width: 265px;
	padding: 0.75rem 1rem;
	background-color: hsla(0, 0%, 100%, 1);
	color: #333333;
	border-radius: 50px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
	text-decoration: none;
	font-family: 'Manrope', sans-serif;
	font-weight: 500;
	font-size: 1rem;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.socnet-cta-card:hover {
	background-color: #db6a00;
	color: #ffffff;
}

.socnet-cta-card:hover .socnet-cta-card-icon {
	background-color: #ffffff;
	color: #eb9c00;
}

/* Круглая иконка 56px, фон #eb9c00, белая иконка как на референсе (color-white) */
.socnet-cta-card-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	min-width: 56px;
	min-height: 56px;
	background-color: #eb9c00;
	color: #ffffff;
	border-radius: 50%;
	font-size: 1.5rem;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.socnet-cta-card-text {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

@media (max-width: 767px) {
	.socnet-cta-block {
		padding: 1.25rem 1rem 4rem;
	}
	.socnet-cta-cards {
		flex-direction: column;
	}
	.socnet-cta-card {
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}
.socnet-cta-card-text {
	white-space: normal;
}
}

/* Порядок блоков на главной: каталог (Новинка Дизайнер классбука) выше блоков «О НАС» и «ДИПЛОМ/ЛИЦЕНЗИЯ» (для страниц с main.landing-public-mode) */
main.landing-public-mode {
	display: flex;
	flex-direction: column;
}
main.landing-public-mode #bx_eshop_wrap {
	order: -1;
}
/* Блок «КРЕАТИВНЫЕ ПРОФЕССИИ» сразу под блоком «О УНИВЕРСИТЕТЕ» (внутри bx_eshop_wrap) */
main.landing-public-mode #b9825 {
	order: 0;
}
main.landing-public-mode #b9821 {
	order: 1;
}
main.landing-public-mode #b9823 {
	order: 2;
}

/* Блоки «О НАС» и карточки после socnet-cta-block на главной */
/* Одинаковая ширина с блоком «Наши программы» — вложенный .container не сужает контент */
.about-block-heading {
	padding-top: 3rem;
	padding-bottom: 1rem;
	background: transparent;
}
.about-block-heading .container {
	max-width: none;
	width: 100%;
	padding-left: 0;
	padding-right: 0;
}
.about-block-heading .container .row {
	margin-left: 0;
	margin-right: 0;
}
.about-block-heading .container .col-12 {
	padding-left: 0;
	padding-right: 0;
}
.about-block-heading__title {
	font-family: 'Manrope', sans-serif;
	font-weight: 600;
	font-size: 1.75rem;
	color: var(--theme-color-title, #333);
	margin: 0;
}
.about-block-cards {
	padding-top: 1rem;
	padding-bottom: 3rem;
	background: transparent;
}

/* Блок «Наши программы» — та же ширина, что у about-block-cards */
.programs-intro-block {
	padding-top: 1rem;
	padding-bottom: 3rem;
	background: transparent;
}
.programs-intro-block__title {
	margin-bottom: 1rem;
}
.about-block-cards__card {
	border-radius: 0.5rem;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.about-block-cards__card:hover {
	box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
	transform: translateY(-2px);
}
.about-block-cards__img-wrap {
	margin-bottom: 1.875rem;
}
.about-block-cards__img {
	max-width: 150px;
	height: auto;
	object-fit: contain;
}
.about-block-cards__text {
	font-family: 'Manrope', sans-serif;
	font-weight: 500;
	font-size: 0.95rem;
	color: #333;
	line-height: 1.4;
}

/* Временно отключён блок списка товаров каталога только на главной */
body.main-page .bx-content .row.product-item-list-col-3,
body.main-page .bx-content .catalog-section [data-entity="items-row"] {
	display: none !important;
}

/* Три блока курсов в один ряд с изображениями */
.course-block-section .course-block-card__btn {
	background-color: #c26400;
	color: #fff !important;
	border-radius: 20px;
	border: none;
}
.course-block-section .course-block-card__btn:hover {
	background-color: #a85500;
	color: #fff !important;
}
.course-block-section .course-block-card__price,
.course-block-section .course-block-card__desc {
	color: #000;
}

/* Ширина блока курсов как у socnet-cta-block: на всю ширину, контент по центру */
.course-block-section {
	margin-left: calc(-50vw + 50%);
	margin-right: calc(-50vw + 50%);
	width: 100vw;
	box-sizing: border-box;
}
.course-block-section__container {
	max-width: 1140px;
	margin: 0 auto;
	padding: 15px 15px 40px 15px;
}
/* Полоска над заголовком «Наши программы» как в лендинге (u-heading-v2-8--top) */
.course-block-section__title.u-heading-v2-8--top::before {
	content: "";
	display: block;
	width: 75%;
	height: 0;
	border-top: 2px solid currentColor;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.07143rem;
}
.course-block-section__intro .course-block-section__text {
	color: rgba(255, 255, 255, 0.9);
}
.course-block-section__intro .course-block-section__text p {
	margin-bottom: 0.5rem;
}
.course-block-section__intro .course-block-section__text p:last-child {
	margin-bottom: 0;
}
.course-block-section .course-block-card {
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.course-block-section .course-block-card:hover {
	box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.2) !important;
	transform: translateY(-4px);
}
.course-block-card__img {
	height: 200px;
	object-fit: cover;
	object-position: center;
}
.course-block-card__header {
	flex-shrink: 0;
}
.course-block-section .course-block-card__price-sum {
	display: block;
	font-weight: 700;
	color: #005e80;
}
/* Чтобы сумма #005e80 была читаема на тёмном фоне */
.course-block-section .card-body .course-block-card__price-sum {
	background-color: rgba(255, 255, 255, 0.25);
	padding: 0.25rem 0.5rem;
	border-radius: 4px;
	display: inline-block;
}

/* Блок «О УНИВЕРСИТЕТЕ»: во всю ширину как socnet-cta-block, кнопка по центру по ширине и высоте */
.about-university-cta {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	min-height: 280px;
	margin-left: calc(-50vw + 50%);
	margin-right: calc(-50vw + 50%);
	width: 100vw;
	box-sizing: border-box;
}
.about-university-cta__cards {
	min-height: 160px;
	align-items: center;
	justify-content: center;
}

/* Блок «КРЕАТИВНЫЕ ПРОФЕССИИ»: белый фон, слева галерея с hover-оверлеем, справа текст */
.creative-professions-block {
	background-color: #fff;
	background-image: none;
	padding-top: 3rem;
	padding-bottom: 3rem;
}
.creative-professions-block__subtitle {
	color: #005e80 !important;
	font-family: 'Manrope', sans-serif;
	font-size: 0.875rem;
	letter-spacing: 0.05em;
	margin: 0 0 0.5rem 0;
}
.creative-professions-block__title {
	color: #005e80 !important;
	font-family: 'Manrope', sans-serif;
	font-size: 1.75rem;
	margin: 0 0 1.25rem 0;
}
.creative-professions-block__list {
	color: #333;
	font-family: 'Manrope', sans-serif;
	line-height: 1.5;
	margin: 0;
	padding: 0;
}
.creative-professions-block__list-item {
	position: relative;
	padding-left: 1.5rem;
	margin-bottom: 0.75rem;
}
.creative-professions-block__list-item::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.5em;
	width: 6px;
	height: 6px;
	background-color: #005e80;
	border-radius: 50%;
}
.creative-professions-gallery {
	display: grid;
	grid-template-columns: 355px 355px;
	grid-template-rows: 355px 355px;
	gap: 0.75rem;
}
/* Flip-карточки галереи: лицевая — фото, оборот — текст (цвета сайта #005e80) */
.creative-professions-gallery__item.card {
	display: block;
	width: 355px;
	height: 355px;
	margin: 0;
	perspective: 1000px;
	cursor: pointer;
	text-decoration: none;
	border-radius: 0.5rem;
	overflow: visible;
}
.card-inner {
	position: relative;
	width: 100%;
	height: 100%;
	transition: transform 0.6s ease;
	transform-style: preserve-3d;
	border-radius: 0.5rem;
}
.creative-professions-gallery__item.card:hover .card-inner {
	transform: rotateY(180deg);
}
/* Без переворота карточек при наведении */
.creative-professions-block--no-flip .creative-professions-gallery__item.card:hover .card-inner {
	transform: none;
}
.card-front,
.card-back {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	backface-visibility: hidden;
	border-radius: 0.5rem;
	box-sizing: border-box;
}
.card-front {
	background: #f3f4f6;
	padding: 0;
	overflow: hidden;
}
.card-front__img {
	display: block;
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}
.card-back {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 1.5rem;
	background: #005e80;
	color: #fff;
	transform: rotateY(180deg);
}
.card-back__title {
	display: block;
	font-family: 'Manrope', sans-serif;
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: 0.02em;
	line-height: 1.3;
	margin-bottom: 0.5rem;
}
.card-back__desc {
	display: block;
	font-size: 0.875rem;
	opacity: 0.95;
	line-height: 1.35;
}
@media (max-width: 991px) {
	.creative-professions-gallery {
		grid-template-columns: 355px 355px;
		grid-template-rows: 355px 355px;
		margin: 0 auto;
	}
}
@media (max-width: 767px) {
	.creative-professions-gallery {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto auto;
		max-width: 100%;
		gap: 0.5rem;
	}
	.creative-professions-gallery__item {
		width: 100%;
		height: auto;
		aspect-ratio: 1;
	}
}
@media (max-width: 575px) {
	.creative-professions-block__title {
		font-size: 1.5rem;
	}
}