/* Стили для панели Bitrix */
#panel {
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 9999 !important; /* Максимальный приоритет */
}
/* Основные цвета с сайта romona.ru */
:root {
	--primary-blue: #0054a6;
	--secondary-blue: #0077c8;
	--dark-blue: #003366;
	--light-blue: #e6f2ff;
	--accent-orange: #f58220;
}
/*Общий стиль для верзнего меню и топ-бара*/
.header-sticky-wrapper {
	position: sticky;
	top: 0;
	z-index: 1100;
}
/*Для уберания отступов у row*/
.row {
	margin-left: 0;
	margin-right: 0;
}
/* Верхний белый блок */
.top-bar {
	background-color: white;
	padding: 10px 0;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
	position: sticky; /* Заменяем fixed на sticky */
	top: 0;
	z-index: 1100;
	width: 100%;
}

.top-bar-content {
	display: flex;
	align-items: center;
	justify-content: space-around;
}

.logo-container {
	display: flex;
	align-items: center;
	margin-right: px; 
	
}
.logo-image{
	height: 40px;
	margin-right: px;
}

.logo-text {
	margin-left: 15px;
	color: var(--dark-blue);
	font-weight: bold;
	font-size: 1.1rem;
}
.work-time{
	text-align: left;
	font-size: 0.9rem;
	font-family: 'Arial';
	margin-left: 50px;
}
/* Навигационное меню */
.navbar {
	position: sticky !important;
	top: 60px !important;
	width: 100% !important;
	z-index: 1000 !important;
	background-color: var(--dark-blue) !important;
}
/* Фиксированное меню */
.navbar-toggler {
	margin-left: auto; /* Перемещает кнопку вправо */
	border: none; /* Убирает стандартную рамку */
}
.nav-item{
	font-size: 1.05rem;
	align-items: center;
}

.navbar {
	position: sticky !important;
	top: 60px !important; /* Высота .top-bar (10px padding + 40px логотип) */
	width: 100% !important;
	z-index: 1000 !important;
	background-color: var(--dark-blue) !important;
}

/* Остальные стили остаются без изменений */
.navbar.scrolled {
	background-color: rgba(0, 51, 102, 0.49) !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand, .nav-link, .dropdown-item {
	color: white !important;
}

.navbar-nav {
	margin: 0 auto;
	display: flex;
	justify-content: center;
	gap: 15px !important; /* Расстояние между пунктами */
}

/*Стили нового выпадающего меню*/
.accordion {
  /* width: 100%;
  margin: 30px auto 20px; */
 
	border: none;
}

/* Основные элементы */
.accordion .link {
  cursor: pointer;
  display: block;
  padding: 8px 40px 15px 0px;
  color: white;
  font-size: 1.05rem;
  position: relative;
  align-items: center;
  transition: all 0.4s ease;
}

.accordion li:last-child .link { 
  border-bottom: 0; 
}

/* Иконки */
.accordion li i {
  position: absolute;
  
  color: #595959;
  transition: all 0.4s ease;
}

.accordion li i.fa-chevron-down {
  right: 12px;
  left: auto;
  top: 14px; 
  /* left: 12px; */
  font-size: 1.05rem;
  color: #FFF;
  transition: transform 0.3s;
}

/* Активные состояния */
.accordion li.open > .link {
  color: #b2b2b2 !important;
}

.accordion li.open > .link i {
  color: #b2b2b2 !important;
}

.accordion li.open > .link .fa-chevron-down {
  transform: rotate(180deg) !important;
}

/* Субменю первого уровня */
.submenu {/*Основной стиль первого уровня меню*/
  display: none;
  background: rgba(0, 51, 102, 0.95) !important;
	border: none;
  list-style-type: none;
	top: 100%  !important;
	position: absolute !important;
	box-shadow: 0 4px 12px rgba(0,0,0,0.2);
	white-space: normal; 
	overflow: hidden;
	word-wrap: break-word;
	justify-content: end !important;
}

.submenu li { 
  border-bottom: 1px solid #4b4a5e; 
}

.submenu a {
  display: block;
  color: #d9d9d9;
  padding: 12px 12px 12px 0px;
  transition: all 0.25s ease;
  text-decoration: none;
}

.submenu a:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
}
.submenu li:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Второй уровень */
.submenu-l2 {/*Основной стиль второго уровня меню*/
  background: rgba(0, 51, 102, 0.95) !important;
  position: relative !important;
  white-space: normal; 
	word-wrap: break-word;
  max-width: 460px;
  width: 100%;
}

.submenu-l2 .link {
  color: #d9d9d9 !important;
  background: rgba(0, 51, 102, 0.95) !important;
  /* padding-left: 55px !important; */
  font-size: 13px;
  
}

.submenu-l2 li.open > .link {
  color: #ff7b8f !important;
}

.submenu-l2 .fa-chevron-down {
  font-size: 14px !important;
  right: -10px !important;
}

/* Третий уровень */
.submenu-l3 {
  background: #2a2a38 !important;
}

.submenu-l3 .link {
  padding-left: 70px !important;
  font-size: 12px !important;
}

.submenu-l3 a {
  padding-left: 70px !important;
}

.btn-primary {
	background-color: var(--accent-orange);
	border-color: var(--accent-orange);
}

.btn-primary:hover {
	background-color: #e6731c;
	border-color: #e6731c;
}
.btn-primary:active {
	transform: translateY(5px) scale(0.98);
	transition: all 0.1s;
}

 /* Футер */
		footer {
			background-color: white;
			color: var(--dark-blue);
			padding: 40px 0;
			font-family: 'Arial';
		}
		
		.footer-title {
			color: var(--dark-blue);
			margin-bottom: 15px;
			font-size: 1.3rem;
			font-weight: bold;
		}
		
		.footer-links a {
			color: var(--dark-blue);
			text-decoration: none;
			transition: color 0.3s;
		}
		
		.footer-links a:hover {
			color: #bdc3c7;
			text-decoration: underline;
		}
		
		.copyright {
			border-top: 1px solid rgba(255,255,255,0.1);
			padding-top: 20px;
			margin-top: 20px;
			text-align: center;
			color: #bdc3c7;
		}
		
		
/* Субменю: не выходит за границы экрана */
@media (max-width: 990px) {
   .top-bar {
	padding: 8px 0;
	}
	.logo-text {
		font-size: 0.7rem;
	}
	
	.logo-image{
		height: 25px;
	}
	.navbar {
		top: 56px; /* Подстройка для мобильных */
	}
	
	
	.navbar-collapse {
		background-color: var(--dark-blue);
		padding: 15px;
		margin-top: 10px;
		/* border-radius: 5px; */
		max-height: 90vh; /* Оставляем место для верхней панели */
		height: auto;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		position: sticky;
		width: 100%;
		top: 60px; /* Высота шапки */
		left: 0;
		
	}
	
	body.menu-open {
		overflow: hidden;
		position: fixed;
		width: 100%;
		height: 100%;
	}
	
	.navbar-nav {
		text-align: left;
	}
		/*Корректировка шрифта времени работы офисов в мобильной версии*/ 
	.work-time{
		font-size: 0.6rem;
	}
	
	 /*Стили нового выпадающего меню*/
  /* Субменю первого уровня */
.submenu {/*Основной стиль первого уровня меню*/
  display: none;
  background: rgba(0, 51, 102, 0.95) !important;
	border: none;
  list-style-type: none;
	top: 105%  !important;
	position: relative !important;
	box-shadow: 0 4px 12px rgba(0,0,0,0.2);
	white-space: normal; 
	overflow: hidden;
	word-wrap: break-word;
	justify-content: end !important;
}

	.carousel-item {
		background-position: 65% center;
	}
	
	
}