/* Финальный стиль для компонента Коммуналка */

.back-link {
    display: inline-block;
    margin-bottom: 1rem;
    color: #718096;
    text-decoration: none;
    font-size: 0.9rem;
}
.back-link:hover { color: #2d3748; }

/* --- ТАБЫ (Категории) --- */
.kommunalka-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.tab-pill {
    padding: 8px 20px;
    border-radius: 50px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}
.tab-pill:hover {
    background: #edf2f7;
    text-decoration: none;
    color: #2d3748;
    transform: translateY(-1px);
}
.tab-pill.active {
    background: #3182ce;
    color: #fff;
    border-color: #3182ce;
    box-shadow: 0 4px 6px rgba(49, 130, 206, 0.3);
}

/* --- КАРТОЧКИ --- */
.service-card {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #edf2f7;
    overflow: hidden;
    transition: all 0.3s ease;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e0;
}
.service-card--tariff { border: 1px solid #c6f6d5; background: #f0fff4; }
.service-card--emergency { border: 1px solid #feb2b2; background: #fff5f5; }

.service-card__link-wrap {
    text-decoration: none;
    color: inherit;
    flex-grow: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.service-card__link-wrap:hover { text-decoration: none; color: inherit; }

.service-card__logo {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    border-radius: 50%;
    background: #fff;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
}
.service-card__logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.service-card__logo--empty { background: #e2e8f0; color: #a0aec0; font-size: 0.7rem; text-align: center; }

.service-card__title { font-size: 1.1rem; font-weight: 700; color: #2d3748; text-align: center; margin-bottom: 10px; line-height: 1.3; }
.service-card__desc { font-size: 0.9rem; color: #718096; text-align: center; margin-bottom: 15px; line-height: 1.5; }
.service-card__meta { width: 100%; margin-top: auto; font-size: 0.85rem; color: #4a5568; }
.service-card__meta .meta-item { display: flex; align-items: flex-start; margin-bottom: 5px; justify-content: center; }
.service-card__meta i { margin-right: 8px; margin-top: 3px; color: #3182ce; }
.service-card__footer { padding: 15px 20px; background: rgba(255,255,255,0.5); border-top: 1px solid rgba(0,0,0,0.03); }
.service-card__footer .btn { border-radius: 6px; font-weight: 600; }

.service-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 4px;
    z-index: 2;
}
.badge-success { background: #48bb78; color: white; }
.badge-danger { background: #e53e3e; color: white; }

/* --- ДЕТАЛЬНАЯ --- */
.service-header {
    padding: 30px;
    background: #fff;
    border-bottom: 4px solid #3182ce;
    display: flex;
    align-items: center;
}
.service-header__logo {
    width: 100px; height: 100px; min-width: 100px;
    margin-right: 25px; border-radius: 50%; border: 1px solid #e2e8f0;
    padding: 5px; background: #fff; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.service-header__logo img {
    max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 50%;
}
.service-header__title { margin: 0; font-size: 2rem; font-weight: 700; color: #1a202c; line-height: 1.2; }

.info-box { background: #f7fafc; border: 1px solid #edf2f7; }
.info-list li { margin-bottom: 12px; font-size: 0.95rem; color: #4a5568; display: flex; flex-direction: column; }
.info-list li span { font-size: 0.8rem; text-transform: uppercase; color: #a0aec0; font-weight: 700; margin-bottom: 2px; }
.info-list li.separator { height: 1px; background: #e2e8f0; margin: 15px 0; }
.info-list a { color: #3182ce; text-decoration: none; }
.info-list a:hover { text-decoration: underline; }

.tariff-box { background: #f0fff4; border: 1px solid #9ae6b4; }
.tariff-box__title { color: #2f855a; font-size: 1.25rem; margin-bottom: 1rem; }
.tariff-box__content { color: #2d3748; }
.tariff-box__content table { width: 100%; background: #fff; border-collapse: collapse; margin-bottom: 1rem; }
.tariff-box__content th, .tariff-box__content td { border: 1px solid #e2e8f0; padding: 8px 12px; }
.tariff-box__content th { background: #ebf8f2; color: #276749; }

.content-box { background: #fff; border: 1px solid #edf2f7; }
.text-content { font-size: 1rem; line-height: 1.7; color: #2d3748; }