/* Основной контейнер */
.local-services-widget {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit; /* Наследует шрифт вашего сайта */
}

.local-services-widget *, 
.local-services-widget *::before, 
.local-services-widget *::after {
    box-sizing: border-box;
}

/* Сетка (Grid) */
.ls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    padding: 10px 0;
}

/* Карточка сервиса */
.ls-card {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    height: 100%; /* Чтобы карточки были одинаковой высоты */
}

/* Эффект при наведении */
.ls-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    border-color: transparent;
}

/* Цветные акценты сверху */
.ls-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 12px 12px 0 0;
}

.ls-card.transport::before { background: #ffb600; } /* Синий */
.ls-card.gkh::before { background: #ffb600; }       /* Зеленый */
.ls-card.internet::before { background: #ffb600; }  /* Оранжевый */

/* Иконка (эмодзи) */
.ls-icon {
    font-size: 42px;
    margin-bottom: 16px;
    line-height: 1;
}

/* Заголовок */
.ls-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #1a1a1a;
}

/* Описание */
.ls-desc {
    font-size: 0.95rem;
    color: #666;
    margin: 0 0 20px 0;
    line-height: 1.5;
    flex-grow: 1; /* Растягивает этот блок, прижимая кнопку к низу */
}

/* Список */
.ls-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    font-size: 0.9rem;
    color: #555;
}

.ls-list li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.ls-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: bold;
}

.ls-card.transport .ls-list li::before { color: #3b82f6; }
.ls-card.gkh .ls-list li::before { color: #10b981; }
.ls-card.internet .ls-list li::before { color: #f59e0b; }

/* Кнопка */
.ls-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 12px 20px;
    background-color: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border: 1px solid #eee;
}

/* Ховер кнопки - меняем цвет в зависимости от типа карточки */
.ls-card.transport .ls-btn:hover { background-color: #ffb600; color: white; border-color: #f59e0b; }
.ls-card.gkh .ls-btn:hover { background-color: #ffb600; color: white; border-color: #f59e0b; }
.ls-card.internet .ls-btn:hover { background-color: #ffb600; color: white; border-color: #f59e0b; }