/* Фаза 12 — публични експерти */

.page-experts-main,
.page-expert-detail-main {
    padding-top: calc(var(--nav-h) + 28px);
    padding-bottom: 48px;
}

.experts-page,
.page-expert-detail-inner {
    max-width: 1320px;
}

/* Hero */
.experts-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px 20px;
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.experts-hero__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.92), rgba(227, 24, 24, 0.85));
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.experts-hero__icon .icon,
.experts-hero__icon svg {
    width: 26px;
    height: 26px;
}

.experts-hero__main {
    flex: 1 1 260px;
    min-width: 0;
}

.experts-hero__title {
    margin: 0 0 8px;
    font-family: var(--font-primary);
    font-size: clamp(1.55rem, 2.8vw, 2rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.1;
}

.experts-hero__lead {
    margin: 0;
    max-width: 52ch;
    font-size: 15px;
    line-height: 1.55;
    color: rgba(240, 244, 250, 0.72);
}

.experts-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
}

.experts-toolbar .btn {
    min-height: 38px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
}

.experts-hint,
.expert-detail__hint {
    margin: -6px 0 20px;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(240, 244, 250, 0.78);
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.22);
}

.experts-hint a,
.expert-detail__hint a {
    color: #6eb5ff;
    text-decoration: none;
    font-weight: 600;
}

.experts-hint a:hover,
.expert-detail__hint a:hover {
    color: #fff;
    text-decoration: underline;
}

.expert-grid--page {
    margin-top: 0;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.experts-empty {
    text-align: center;
    padding: 48px 28px 52px;
    border-radius: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(8, 16, 32, 0.65) 0%, rgba(4, 10, 22, 0.4) 100%);
}

.experts-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
    border-radius: 18px;
    color: rgba(245, 158, 11, 0.92);
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.22);
}

.experts-empty__icon .icon,
.experts-empty__icon svg {
    width: 30px;
    height: 30px;
}

.experts-empty__title {
    margin: 0 0 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.experts-empty__text {
    margin: 0 auto;
    max-width: 46ch;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(240, 244, 250, 0.62);
}

.experts-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 16px;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.experts-pagination__info {
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(240, 244, 250, 0.55);
}

.page-expert-back {
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
}

.page-expert-back a {
    color: #6eb5ff;
    text-decoration: none;
    font-weight: 600;
}

.page-expert-back a:hover {
    color: #fff;
    text-decoration: underline;
}

.expert-detail {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
    padding: 1.5rem 1.75rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 16, 30, 0.88);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.38);
}

.expert-detail__photo img {
    width: 100%;
    border-radius: 14px;
    object-fit: cover;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.expert-detail__body h1 {
    margin: 0.5rem 0 1rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #fff;
}

.expert-detail__summary {
    font-size: 1.05rem;
    line-height: 1.55;
    margin-bottom: 1rem;
    color: rgba(240, 244, 250, 0.88);
}

.page-expert-detail .civic-share {
    margin: 0 0 1.25rem;
}

.page-expert-detail .civic-share__label {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted, #8b97a8);
}

.page-expert-detail .signal-share__buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.page-expert-detail .signal-share__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #c8d0dc;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.page-expert-detail .signal-share__btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.22);
}

.page-expert-detail .signal-share__btn .icon {
    width: 18px;
    height: 18px;
}

.page-expert-detail .signal-share__btn--facebook:hover {
    color: #6ea8ff;
}

.expert-detail__bio {
    line-height: 1.65;
    margin-bottom: 1.5rem;
    color: rgba(240, 244, 250, 0.82);
}

.expert-detail__social a {
    margin-right: 1rem;
}

.consultations-member-layout {
    display: grid;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.consultation-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    background: rgba(10, 16, 30, 0.72);
}

.consultation-card__meta {
    font-size: 0.9rem;
    color: rgba(240, 244, 250, 0.55);
    margin-bottom: 0.5rem;
}

.consultation-card__status {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    background: rgba(41, 151, 255, 0.15);
    color: #93c5fd;
    border: 1px solid rgba(41, 151, 255, 0.28);
}

.consultation-card__status--completed {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.28);
}

.consultation-card__status--declined,
.consultation-card__status--cancelled {
    background: rgba(227, 24, 24, 0.12);
    color: #fca5a5;
    border-color: rgba(227, 24, 24, 0.28);
}

.consultation-thread__messages {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1rem 0;
    max-height: 420px;
    overflow-y: auto;
}

.consultation-msg {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border-left: 3px solid rgba(41, 151, 255, 0.5);
}

.consultation-msg--mine {
    border-left-color: rgba(34, 197, 94, 0.7);
    background: rgba(34, 197, 94, 0.08);
}

.consultation-msg--staff {
    border-left-color: rgba(245, 158, 11, 0.8);
    background: rgba(245, 158, 11, 0.08);
}

.consultation-msg__head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
    color: rgba(240, 244, 250, 0.55);
}

@media (max-width: 960px) {
    .expert-grid--page {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

@media (max-width: 768px) {
    .expert-detail {
        grid-template-columns: 1fr;
        padding: 1.25rem;
    }

    .expert-detail__photo {
        max-width: 220px;
    }
}

@media (max-width: 640px) {
    .page-experts-main,
    .page-expert-detail-main {
        padding-top: calc(var(--nav-h) + 16px);
    }

    .experts-hero {
        margin-bottom: 18px;
        padding-bottom: 18px;
    }
}
