:root {
	--primary: #B0003A;
	--primary-light: rgba(176, 0, 58, 0.1);
	--secondary: #2C3E50;
	--accent: #FF6B00;
	--light: #F8F9FA;
	--gray: #E9ECEF;
	--dark-gray: #6C757D;
	--dark: #212529;
	--white: #FFFFFF;
	--shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	--transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
	--primary-color: #b0003a;
	--secondary-color: #2c3e50;
	--accent-color: #e74c3c;
	--light-gray: #f5f5f5;
	--medium-gray: #e0e0e0;
	--dark-gray: #333;
	--white: #fff;
	--shadow: 0 4px 12px rgba(0,0,0,0.1);
	--transition: all 0.3s ease;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: Qanelas !important;
	color: var(--dark);
	line-height: 1.6;
	background-color: var(--light);
}

.container {
	width: 98%;
	max-width: 1600px;
	margin: 0 auto;
	padding: 0 15px;
}

/* Шапка */
.page-header {
	text-align: center;
	padding: 10px 0;
	color: var(--secondary);
	margin-bottom: 40px;
	justify-content: space-between;
	border-radius: 0 0 20px 20px;
	box-shadow: var(--shadow);
}
header .page-header h1{
	font-family: Qanelas !important;
	line-height: 0.5 !important;
}

.page-header h1 {
	font-size: 2rem;
	font-weight: 800;
	margin-bottom: 0px;
}

.page-header p {
	font-size: 1.2rem;
	max-width: 800px;
	margin: 0 auto;
	opacity: 0.9;
}

/* Основной контент */
.main-content {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	margin-bottom: 40px;
}

/* Блок карты */
.map-container {
	flex: 1 1 60%;
	min-width: 300px;
	position: relative;
	border-radius: 15px;
	overflow: hidden;
	box-shadow: var(--shadow);
	height: 560px;
}

#map {
	width: 100%;
	height: 100%;
}
p{
	margin: 0px;
}
ul{
	padding-left: 0rem;
}
h1{
	text-transform: uppercase;
	font-size: 2rem;
}
.map-overlay {
	position: absolute;
	top: 20px;
	left: 20px;
	z-index: 1000;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 10px;
	padding: 20px;
	box-shadow: var(--shadow);
	max-width: 450px;
	transform: translateY(0);
	transition: var(--transition);
}

.map-overlay:hover {
	transform: translateY(-5px);
}

.map-overlay h3 {
	color: var(--primary);
	font-size: 1.3rem;
	line-height: 1;
}

.map-overlay p {
	font-size: 0.95rem;
}

.map-overlay a {
	color: var(--primary);
	text-decoration: none;
	font-weight: 500;
	display: inline-block;
}

/* Блок складов */
.warehouses-container {
	flex: 1 1 35%;
	min-width: 300px;
}

.warehouses-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.warehouses-header h2 {
	color: var(--secondary);
	font-size: 1.8rem;
	margin-top:0px !important;
	margin-bottom: .5rem;
}

.warehouses-list {
	background: var(--white);
	border-radius: 15px;
	box-shadow: var(--shadow);
	max-height: 518px;
	overflow-y: auto;
	padding: 5px;
}

.warehouse-item {
	padding: 20px;
	border-bottom: 1px solid var(--gray);
	cursor: pointer;
	transition: var(--transition);
	border-radius: 10px;
	margin: 5px;
}

.warehouse-item:hover {
	background: var(--primary-light);
}

.warehouse-item.active {
	background: var(--primary);
	color: var(--white);
	box-shadow: 0 5px 15px rgba(176, 0, 58, 0.3);
}

.warehouse-item h4 {
	font-size: 1.1rem;
	margin-bottom: 8px;
	display: flex;
	justify-content: space-between;
}

.warehouse-item p {
	font-size: 0.9rem;
	opacity: 0.9;
	margin-bottom: 5px;
}

/* Блок контактов офиса */
.office-contacts {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	margin-bottom: 40px;
}

.office-info {
	flex: 1 1 45%;
	min-width: 300px;
	background: var(--white);
	border-radius: 15px;
	padding: 30px;
	box-shadow: var(--shadow);
}

.office-info h2 {
	color: var(--secondary);
	font-size: 1.5rem;
	margin-bottom: 20px;
	position: relative;
	padding-bottom: 10px;
}

.office-info h2:after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 60px;
	height: 3px;
	background: var(--primary);
}

.office-info ul {
	list-style: none;
}

.office-info li {
	margin-bottom: 15px;
	padding-bottom: 5px;
	border-bottom: 1px dashed var(--gray);
	display: flex;
	align-items: flex-start;
}

.office-info li:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.contact-icon {
	margin-right: 15px;
	color: var(--primary);
	font-size: 1.2rem;
	min-width: 20px;
}

.contact-text {
	flex: 1;
}

.contact-text a {
	color: var(--dark);
	text-decoration: none;
	transition: var(--transition);
}

.contact-text a:hover {
	color: var(--primary);
}

.contact-text .ct_phone {
	color: var(--dark-gray);
	font-weight: 600;
}

.contact-text span {
	display: block;
	font-weight: 600;
	margin-bottom: 5px;
	color: var(--dark-gray);
}

.contact-links {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin-top: 10px;
}

.contact-links a {
	color: var(--primary);
	text-decoration: none;
	font-weight: 500;
	transition: var(--transition);
}

.contact-links a:hover {
	text-decoration: underline;
}

/* Блок менеджеров */
.managers-section {
	background: var(--white);
	border-radius: 20px;
	box-shadow: var(--shadow);
	padding: 30px;
	margin-bottom: 40px;
}

.managers-header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 25px;
	gap: 20px;
}

.managers-header h2 {
	color: var(--secondary);
	font-size: 1.8rem;
	position: relative;
	padding-bottom: 10px;
}

.managers-header h2:after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 60px;
	height: 3px;
	background: var(--primary);
}

.manager-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 25px;
}

.search-container {
	flex: 1 1 400px;
	position: relative;
}

.search-container input {
	width: 100%;
	padding: 15px 20px 15px 45px;
	border: 1px solid var(--gray);
	border-radius: 8px;
	font-size: 1rem;
	transition: var(--transition);
}

.search-container input:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px var(--primary-light);
}

.search-icon {
	position: absolute;
	left: 20px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--dark-gray);
}

.region-filter {
	flex: 1 1 300px;
}

.custom-select {
	position: relative;
	width: 100%;
}

.select-selected {
	background-color: var(--white);
	padding: 15px 20px;
	border: 1px solid var(--gray);
	border-radius: 8px;
	cursor: pointer;
	position: relative;
	transition: var(--transition);
}

.select-selected:after {
	content: '';
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	border: 6px solid transparent;
	border-top-color: var(--dark-gray);
	transition: var(--transition);
}

.select-selected.select-arrow-active:after {
	transform: translateY(-50%) rotate(180deg);
}

.select-items {
	position: absolute;
	background-color: var(--white);
	top: 100%;
	left: 0;
	right: 0;
	z-index: 99;
	border: 1px solid var(--gray);
	border-radius: 8px;
	max-height: 300px;
	overflow-y: auto;
	box-shadow: var(--shadow);

}

.select-items div {
	padding: 12px 20px;
	cursor: pointer;
	transition: var(--transition);
}

.select-items div:hover {
	background-color: var(--primary-light);
	color: var(--primary);
}

.select-items div.group-header {
	font-weight: 600;
	background-color: var(--gray);
	cursor: default;
	color: var(--dark);
}

.select-items div.child-item {
	padding-left: 30px;
}

.select-hide {
	display: none;
}

.managers-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
	gap: 25px;
}

.manager-card {
	background: var(--light);
	border-radius: 12px;
	padding: 15px;
	transition: var(--transition);
	display: flex;
	flex-direction: column;
}

.manager-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
	border-color: var(--primary);
}

.manager-card-header {
	display: flex;
	align-items: center;
	margin-bottom: 15px;
}
.manager-info{
	display: flex;
	justify-content: space-between; /* Растягивает элементы по ширине */
	align-items: center; /* Выравнивает по вертикали */
	width: 100%; /* На всякий случай, если родительский блок ограничен */
}

.manager-info h3 {
	color: var(--secondary);
	margin-bottom: 5px;
	font-size: 1.2rem;
	margin-top: 5px;
	padding-top: 5px;
	margin: 0; /* Убираем отступы у заголовка */
	flex-shrink: 0; /* Запрещаем сжатие (если текст слишком длинный) */

}

.manager-region {
	font-size: 1rem;
	color: var(--secondary);
	border-radius: 7px;
	margin-left: auto;
	white-space: nowrap;
	padding: 5px 10px;
	background: var(--primary-light);

}

.manager-contacts {

	border-top: 1px dashed var(--gray);

}

.contact-item {
	display: flex;
	align-items: center;
	margin-bottom: 10px;
}

.contact-icon {
	width: 24px;
	height: 24px;
	margin-right: 10px;
	color: var(--primary);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.contact-text {
	flex: 1;
}

.contact-text a {
	color: var(--dark);
	text-decoration: none;
	transition: var(--transition);
}

.contact-text a:hover {
	color: var(--primary);
}

/* Кнопка "Показать все" */
.show-all {
	text-align: center;
	margin-top: 30px;
}

.show-all-btn {
	display: inline-flex;
	align-items: center;
	padding: 12px 25px;
	background: var(--primary);
	color: var(--white);
	border: none;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
	transition: var(--transition);
	box-shadow: 0 4px 15px rgba(176, 0, 58, 0.2);
}

.show-all-btn:hover {
	background: #7B001F;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(176, 0, 58, 0.3);
}

.show-all-btn .arrow {
	margin-left: 10px;
	transition: var(--transition);
}

.show-all-btn.active .arrow {
	transform: rotate(180deg);
}
/* Блок реквизитов */
.requisites-section {
	margin-top: 2rem;
	background: var(--white);
	padding: 2rem;
	border-radius: 8px;
	box-shadow: var(--shadow);
}
h5{
	line-height: 0.1;
	border-bottom: none;
	margin-bottom: 0rem !important;
}

.requisites-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 1rem;
}

.requisites-table tr:nth-child(even) {
	background: var(--light-gray);
}

.requisites-table th, .requisites-table td {
	padding: 12px 15px;
	text-align: left;
	border-bottom: 1px solid var(--medium-gray);
}

.requisites-table th {
	background: var(--primary-color);
	color: var(--white);
}

/* Адаптивность */
@media (max-width: 1200px) {

}

@media (max-width: 768px) {
	.page-header h1 {
		font-size: 2rem;
	}

	.page-header p {
		font-size: 1rem;
	}

	.managers-grid {
		grid-template-columns: 1fr;
	}

	.manager-controls {
		flex-direction: column;
	}

	.office-contacts {
		flex-direction: column;
	}
	.search-container{
		flex: 1 1 50px;
	}
	.region-filter{
		flex: 1 1 50px;
	}
	h5{
		line-height: 1;
	}
}

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

.animated {
	animation: fadeIn 0.5s ease-out forwards;
}
.manager-card::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
	transform: scaleX(0);
	transform-origin: left;
	transition: var(--transition);
}

.manager-card:hover {
	transform: translateY(-8px);
	box-shadow: var(--shadow-lg);
	border-color: rgba(176,0,58,0.1);
}

.manager-card:hover::after {
	transform: scaleX(1);
}
.contact-icon.email-icon {
	background: none;
	width: 20px;
	height: 20px;
}