

/* Start:/bitrix/templates/main/components/bitrix/photo.sections.top/contact-page/style.css?175684002814425*/
div.photo-sections-top table.data-table tr.head-row td {
	padding:10px 5px;
	border-bottom:none;
}
div.photo-sections-top table.data-table tr.data-row {
	border-top:none;
	border-bottom:none;
}
div.photo-sections-top table.data-table th.data-cell {
	border-top:none;
	border-bottom:none;
	padding:2px 2px;
}

/* Стили для страницы контактов */
.contacts-page-wrapper {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.contacts-page-content {
	flex: 1;
}

/* Стили для футера на странице контактов */
.site-footer {
	margin-top: auto;
}

/* Обеспечиваем правильное позиционирование футера */
.main-wrap {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* Стили для основного контента контактов */
.contacts-block {
	margin-bottom: 2rem;
}

/* Дополнительные стили для корректного отображения */
.contacts-page-content h1 {
	margin-bottom: 2rem;
	color: #333;
	font-size: 2rem;
	font-weight: 600;
}

/* Обеспечиваем правильное позиционирование контента */
.contacts-page-content {
	padding: 2rem 0;
}

/* Стили для основного контейнера */
.contacts-page-wrapper {
	background: #f5f5f5;
	min-height: calc(100vh - 200px); /* Учитываем высоту хедера и футера */
}

/* Стили для карточек контактов */
.cards .card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.cards .card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.card-header {
    padding: 20px;
    margin-bottom: 0;
    border-bottom: 1px solid #f1f3f4;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card-header:hover {
    background: #f8f9fa;
}

.card-header.expanded {
    background: #e3f2fd;
    border-bottom-color: #bbdefb;
}

.card-header .company-info {
    flex: 1;
}

.company-name {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
    line-height: 1.3;
}

.company-type {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.expand-icon {
    font-size: 14px;
    color: #6c757d;
    transition: transform 0.3s ease;
    margin-left: 15px;
    flex-shrink: 0;
}

.card-header.expanded .expand-icon {
    color: #1976d2;
}

.location-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 20px 15px 20px;
    margin-bottom: 0;
}

.presence-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 20px 15px 20px;
    margin-bottom: 0;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

.badge.country {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

.badge.region {
    background: #f3e5f5;
    color: #7b1fa2;
    border: 1px solid #e1bee7;
}

.badge.city {
    background: #e8f5e8;
    color: #388e3c;
    border: 1px solid #c8e6c9;
}

.badge.presence {
    background: #fff3e0;
    color: #f57c00;
    border: 1px solid #ffcc02;
}

.contact-info {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #f8f9fa;
}

.contact-info.collapsed {
    max-height: 0;
    padding: 0 20px;
}

.contact-info.expanded {
    max-height: 500px;
    padding: 20px;
}

.contact-info .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.contact-info .contact-item:last-child {
    border-bottom: none;
}

.contact-item .icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.contact-item a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.contact-item span {
    color: #495057;
    line-height: 1.4;
}

/* Стили для фильтров */
.filters {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
}

.filters-title {
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-actions {
    display: flex;
    gap: 10px;
}

.btn-reset, .btn-show-all {
    padding: 8px 16px;
    border: 1px solid #6c757d;
    border-radius: 6px;
    background: white;
    color: #6c757d;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-reset:hover {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
}

.btn-show-all:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-item label {
    font-size: 12px;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select {
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    color: #495057;
    transition: all 0.2s ease;
    cursor: pointer;
}

.filter-select:hover {
    border-color: #007bff;
}

.filter-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

/* Стили для табов */
.tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    position: relative;
    overflow: hidden;
}

.tab:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.tab.active {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.tab-icon {
    font-size: 16px;
}

.tab-text {
    font-weight: 600;
}

.count {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.tab:not(.active) .count {
    background: #e9ecef;
    color: #6c757d;
}

/* Стили для сортировки */
.sort-controls-compact {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.sort-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 12px;
}

.sort-icon {
    font-size: 16px;
}

.sort-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
}

.sort-btn {
    padding: 10px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: white;
    color: #6c757d;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.sort-btn:hover {
    background: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
}

.sort-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
    box-shadow: 0 2px 4px rgba(0,123,255,0.2);
}

.sort-text {
    display: block;
    line-height: 1.3;
}

/* Адаптивность */
@media (max-width: 768px) {
    .filters {
        padding: 15px;
    }
    
    .filters-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .filter-actions {
        width: 100%;
        justify-content: stretch;
    }
    
    .btn-reset, .btn-show-all {
        flex: 1;
        padding: 10px;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .tabs {
        flex-direction: column;
        gap: 0;
    }
    
    .tab {
        border-radius: 6px;
        margin-bottom: 2px;
    }
    
    .sort-buttons {
        grid-template-columns: 1fr;
    }
    
    .sort-btn {
        padding: 12px;
    }
}

/* Стили для информационных блоков */
.info-block {
    background: #f8f9fa;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    font-size: 14px;
    line-height: 1.5;
}

.info-block .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.info-block .title {
    color: #007bff;
    font-size: 16px;
    font-weight: bold;
}

.info-block .total-count {
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.info-block .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.info-block .stat-item {
    background: white;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.info-block .stat-label {
    color: #6c757d;
    font-size: 12px;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 500;
}

.info-block .stat-value {
    font-size: 18px;
    font-weight: bold;
}

.info-block .stat-value.dealers { color: #28a745; }
.info-block .stat-value.partners { color: #17a2b8; }
.info-block .stat-value.countries { color: #6f42c1; }

.info-block .footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
    font-size: 13px;
    color: #6c757d;
}

/* Стили для статуса системы */
.system-status {
    background: #e8f5e8;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 6px;
    border: 1px solid #4caf50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.system-status .icon {
    color: #4caf50;
    font-size: 18px;
}

.system-status .content {
    flex: 1;
}

.system-status .title {
    color: #2e7d32;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 2px;
}

.system-status .details {
    color: #4caf50;
    font-size: 13px;
    line-height: 1.4;
}

.system-status .details span {
    margin-right: 8px;
}

.system-status .details .js-active { color: #28a745; }
.system-status .details .data-count { color: #007bff; }
.system-status .details .dealers-count { color: #28a745; }
.system-status .details .partners-count { color: #17a2b8; }

/* Адаптивность для информационных блоков */
@media (max-width: 768px) {
    .info-block .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .info-block .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .system-status {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

/* Адаптивность для карточек */
@media (max-width: 768px) {
    .cards .card {
        margin-bottom: 12px;
    }
    
    .card-header {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .expand-icon {
        position: absolute;
        top: 15px;
        right: 15px;
        margin-left: 0;
    }
    
    .company-name {
        font-size: 16px;
    }
    
    .location-badges,
    .presence-badges {
        padding: 0 15px 12px 15px;
        gap: 6px;
    }
    
    .badge {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .contact-info.expanded {
        padding: 15px;
    }
    
    .contact-info .contact-item {
        gap: 8px;
        padding: 6px 0;
    }
}

/* Дополнительные стили для исправления отображения кнопки "Схема проезда" */
.contacts-block .left-col .button-wrap {
    margin-bottom: 20px;
    padding: 0;
    position: relative;
    z-index: 5;
}

.contacts-block .left-col .link-to-scheme {
    display: inline-block;
    background: #e31c24 url("/bitrix/templates/main/img/map-ico.svg") no-repeat 20px 50%/33px 34px;
    padding: 18px 25px 18px 75px;
    color: #fff;
    font-size: 17px;
    text-align: center;
    border: none;
    position: relative;
    margin-bottom: 20px;
    box-sizing: border-box;
    overflow: visible;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.contacts-block .left-col .link-to-scheme:hover {
    background-color: #c01921;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Исправление для мобильных устройств */
@media (max-width: 550px) {
    .contacts-block .left-col .link-to-scheme {
        background: #e31c24 url("/bitrix/templates/main/img/map-ico.svg") no-repeat 10px 50%/23px 24px;
        padding: 10px 10px 10px 40px;
        font-size: 15px;
        margin-bottom: 15px;
    }
}

/* Обеспечиваем корректное отображение контента в левой колонке */
.contacts-block .left-col .content {
    background: #000029;
    color: #fff;
    z-index: 4;
    padding: 20px;
    min-height: 0;
    box-sizing: border-box;
    overflow: visible;
}

/* Исправление для контейнера с кнопкой */
.contacts-block .left-col .content .button-wrap {
    position: relative;
    z-index: 5;
    margin-bottom: 20px;
    padding: 0;
}

/* End */
/* /bitrix/templates/main/components/bitrix/photo.sections.top/contact-page/style.css?175684002814425 */
