/* Исправление отступов для детальной страницы услуги */

/* Убеждаемся, что site-wrapper--inside имеет правильные отступы */
.site-main .site-wrapper.site-wrapper--inside {
    padding: 0 20px;
}

/* Для больших экранов увеличиваем отступы */
@media (min-width: 1170px) {
    .site-main .site-wrapper.site-wrapper--inside {
        padding: 0 40px;
    }
}

/* Исправляем отступы для section-list */
.section-list {
    margin: 10px -24px 0 -24px !important;
    padding: 12px 24px !important;
}

/* Для больших экранов корректируем отступы */
@media (min-width: 1170px) {
    .section-list {
        margin: 10px -40px 0 -40px !important;
        padding: 12px 40px !important;
    }
}

/* Убеждаемся, что article__body имеет правильные отступы */
.article__body {
    padding: 50px 20px 20px !important;
}

@media (min-width: 1170px) {
    .article__body {
        padding: 40px !important;
    }
}

/* Убеждаемся, что article__body имеет правильные отступы */
.article__body {
    padding: 50px 20px 20px !important;
}

@media (min-width: 1170px) {
    .article__body {
        padding: 40px !important;
    }
}


/* Черно-белый фильтр для карты - исключаем маркер */
.bx-yandex-map {
    filter: saturate(0) !important;
    -webkit-filter: saturate(0) !important;
    -moz-filter: saturate(0) !important;
    -ms-filter: saturate(0) !important;
    -o-filter: saturate(0) !important;
}

/* Исключаем маркер из фильтра */
.bx-yandex-map .ymaps-2-1-79-placemark,
.bx-yandex-map .ymaps-2-1-79-placemark-overlay,
.bx-yandex-map .ymaps-2-1-79-placemark-content,
.bx-yandex-map .ymaps-2-1-79-placemark-content-wrapper,
.bx-yandex-map .ymaps-2-1-79-placemark-content-wrapper img,
.bx-yandex-map img[src*="marker.svg"] {
    filter: none !important;
    -webkit-filter: none !important;
    -moz-filter: none !important;
    -ms-filter: none !important;
    -o-filter: none !important;
}

/* Горизонтальное расположение футера */
.site-footer__content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 30px;
}

.site-footer__left {
    flex: 0 0 auto;
    min-width: 200px;
}

.site-footer__center {
    flex: 1;
    max-width: 600px;
}

.site-footer__right {
    flex: 0 0 auto;
    text-align: right;
    min-width: 200px;
}

.site-footer__center .site-footer__nav {
    display: flex !important;
    flex-wrap: wrap;
    flex-direction: row !important;
    gap: 15px 30px;
    align-items: center;
    justify-content: center;
}

.site-footer__center .site-footer__link {
    white-space: nowrap;
    display: inline-block !important;
}

.site-footer__center .site-footer__text {
    display: inline-block !important;
}

@media (max-width: 768px) {
    .site-footer__center .site-footer__nav {
        flex-direction: column !important;
        gap: 10px;
    }
}

.site-footer__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    margin-top: 10px;
}

.site-footer__bottom {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
    text-align: center;
}

.site-footer__bottom .site-footer__meta-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__bottom .site-footer__meta-item {
    margin: 0;
}

/* Отступ сверху только для страницы услуг */
.services-page .site-main .site-wrapper--inside {
    padding-top: 120px;
}

@media (min-width: 1170px) {
    .services-page .site-main .site-wrapper--inside {
        padding-top: 150px;
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .site-footer__content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .site-footer__center .site-footer__list {
        justify-content: center;
    }
    
    .site-footer__right {
        text-align: center;
    }
    
    .site-footer__actions {
        align-items: center;
    }
    
    .site-footer__bottom .site-footer__meta-list {
        flex-direction: column;
        gap: 10px;
    }
    
    .site-main .site-wrapper--inside {
        padding-top: 100px;
    }
}
