/* Хаб сервисов и страницы реестров */

.modern-page.services-hub-page,
.modern-page.services-registry-page,
.modern-page.services-affiliated-page,
.modern-page.services-widgets-page {
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.services-hub-page .page-hero-rich,
.services-registry-page .page-hero-rich {
    margin-bottom: 24px;
}

.services-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin: 28px 0 36px;
}

.services-hub-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(15, 118, 110, 0.12);
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.services-hub-card:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 118, 110, 0.28);
    box-shadow: 0 14px 32px rgba(15, 118, 110, 0.12);
    color: inherit;
}

.services-hub-card-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.14), rgba(20, 184, 166, 0.08));
    color: #0f766e;
    font-size: 1.125rem;
}

.services-hub-card-body {
    flex: 1 1 auto;
    min-width: 0;
}

.services-hub-card-title {
    margin: 0 0 8px;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #0f172a;
}

.services-hub-card-desc {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #64748b;
}

.services-hub-card-arrow {
    flex: 0 0 auto;
    color: #94a3b8;
    padding-top: 4px;
}

.services-search-card,
.services-results-card {
    border-radius: 16px;
    border: 1px solid rgba(15, 118, 110, 0.12);
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    padding: 24px;
    margin-bottom: 24px;
}

.services-search-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #0f172a;
}

.services-search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.services-search-input {
    flex: 1 1 240px;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 1rem;
}

.services-search-input:focus {
    outline: none;
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.services-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.services-search-btn:hover {
    filter: brightness(1.03);
}

.services-search-hint {
    margin: 12px 0 0;
    font-size: 0.875rem;
    color: #64748b;
}

.services-alert {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.services-alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.services-results-head {
    margin-bottom: 16px;
}

.services-results-head h2 {
    margin: 0;
    font-size: 1.125rem;
}

.services-results-head .services-search-hint {
    margin: 8px 0 0;
}

.services-registry-table-wrap {
    overflow-x: auto;
}

.services-registry-table tr.is-negative td {
    background: #fef2f2;
}

.services-registry-status {
    display: inline-block;
    font-weight: 600;
    font-size: 0.875rem;
}

.services-registry-status.is-ok {
    color: #115e59;
}

.services-registry-status.is-bad {
    color: #991b1b;
}

.services-registry-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
    min-width: 520px;
}

.services-registry-table th {
    background: #f8fafc;
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.services-registry-table td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}

.services-registry-table a {
    color: #0f766e;
    text-decoration: none;
}

.services-registry-table a:hover {
    text-decoration: underline;
}

.services-registry-empty {
    margin: 0;
    color: #64748b;
}

@media (max-width: 768px) {
    .services-hub-page .page-hero-rich,
    .services-registry-page .page-hero-rich,
    .services-affiliated-page .page-hero-rich {
        margin-bottom: 20px;
    }

    .services-search-card,
    .services-results-card {
        padding: 16px;
        border-radius: 12px;
    }

    .services-hub-card {
        padding: 16px;
        gap: 12px;
    }

    .services-hub-card-icon {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .services-hub-card-arrow {
        display: none;
    }

    .services-results-head h2 {
        font-size: 1.0625rem;
    }
}

@media (max-width: 640px) {
    .services-hub-grid {
        grid-template-columns: 1fr;
    }

    .services-search-btn {
        width: 100%;
        justify-content: center;
    }
}
