/* services-sidebar.css */
/* Общие стили для бокового меню услуг на всех страницах */

.services-sidebar {
    width: 350px;
    min-width: 200px;
}

.services-block {
    /*background: #F9F2DE;*/
    background:
            url('/images/pattern_v08.png') repeat,
            linear-gradient(to bottom, #FEF9EC, #F9F2DE);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.services-block h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #8B5A01;
    margin-bottom: 15px;
}

.services-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.services-list li {
    margin-bottom: 12px;
    padding-left: 5px;
}

.services-list a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.services-list a:hover {
    color: #d23c01;
}

.services-list a.active {
    color: #8B5A01 !important;
    font-weight: 700;
    position: relative;
    padding-left: 20px;
    pointer-events: none;
    cursor: default;
}

.services-list a.active::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #d23c01;
    margin-right: 10px;
}

.services-list a:not(.active):hover {
    color: #d23c01;
}

.services-page .information-page-grid {
    display: flex;
    flex-direction: column;
}

.services-page .information-content {
    order: 1;
}

.services-page .services-sidebar {
    order: 2;
}


/* Адаптивность */
@media (max-width: 1351px) {
    .services-block h3 {
        font-size: 1.5rem;
    }
    .services-list a {
        font-size: 0.9rem;
    }
}

@media (min-width: 993px) {
    .services-page .information-page-grid {
        flex-direction: row;
    }
}

@media (max-width: 992px) {
    .services-sidebar {
        width: 100%;
        order: 2;
    }

    .information-page-grid {
        flex-direction: column;
    }

    .services-block h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .services-list a {
        font-size: 0.9rem;
    }
}

/* Добавь это в конец services-sidebar.css */
@media (max-width: 992px) {
    /* Переопределяем скрытие сайдбара */
    .services-page .contacts-sidebar {
        display: block !important;
        width: 100%;
        margin-top: 40px; /* Отступ от основного контента */
    }

    /* Меняем порядок grid-элементов */
    .services-page .information-page-grid {
        display: flex;
        flex-direction: column;
    }

    .services-page .information-content {
        order: 1;
    }

    .services-page .contacts-sidebar {
        order: 2;
    }
}