/* ═══ Визитка эксперта — «сочность» 2026 (cosmic strategy) — ТЁМНАЯ/СВЕТЛАЯ ═══
   Все цвета через переменные; светлая тема — полноценная, не инверсия.          */
.expert-page { padding: 48px 0 72px; position: relative; }

.expert-shell {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ─── Переменные: тёмная (дефолт страницы) ─── */
:root,
[data-theme="dark"] {
    color-scheme: dark;
    --ex-card-bg:       rgba(13,18,26,.92);
    --ex-card-glow-a:    rgba(20,184,166,.28);
    --ex-card-glow-b:    rgba(219,167,125,.20);
    --ex-section-bg:     rgba(17,22,26,.5);
    --ex-border:         rgba(255,255,255,.08);
    --ex-border-strong:  rgba(45,212,191,.35);
    --ex-text:           rgba(236,232,220,.82);
    --ex-muted:          rgba(236,232,220,.55);
    --ex-heading:        #F2EDE2;
    --ex-chip-bg:        rgba(255,255,255,.04);
    --ex-item-bg:        rgba(255,255,255,.03);
    --ex-avatar-bg:      rgba(15,118,110,.15);
    --ex-input-bg:       rgba(255,255,255,.05);
    --ex-input-border:   rgba(255,255,255,.14);
    --ex-shadow:         0 24px 70px rgba(0,0,0,.45);
    --ex-avatar-border:  rgba(14,184,166,.4);
}

/* ─── Переменные: светлая ─── */
[data-theme="light"] {
    color-scheme: light;
    --ex-card-bg:        rgba(255,255,255,.96);
    --ex-card-glow-a:    rgba(20,184,166,.14);
    --ex-card-glow-b:    rgba(219,167,125,.16);
    --ex-section-bg:     rgba(255,255,255,.9);
    --ex-border:         rgba(23,37,44,.10);
    --ex-border-strong:  #0F766E;
    --ex-text:           #374151;
    --ex-muted:          #6B7280;
    --ex-heading:        #0F172A;
    --ex-chip-bg:        rgba(15,118,110,.05);
    --ex-item-bg:        #F1F5F9;
    --ex-avatar-bg:      rgba(15,118,110,.08);
    --ex-input-bg:       #FFFFFF;
    --ex-input-border:   #CBD5E1;
    --ex-modal-border:   #CBD5E1;
    --ex-shadow:         0 18px 50px rgba(30,50,50,.12);
    --ex-avatar-border:  #0F766E;
}

/* ─── Hero-карточка ─── */
.expert-hero {
    position: relative;
    border-radius: 24px;
    padding: 26px 34px;
    overflow: hidden;
    background:
        radial-gradient(600px 280px at 12% -10%, var(--ex-card-glow-a) 0%, transparent 60%),
        radial-gradient(520px 300px at 95% 0%, var(--ex-card-glow-b) 0%, transparent 55%),
        linear-gradient(160deg, var(--ex-card-bg), var(--ex-card-bg));
    border: 1px solid rgba(14,184,166,.20);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--ex-shadow);
    display: flex;
    flex-direction: column;      /* 06.09.2026: части (top/divider/bottom) — столбиком, вся ширина */
    gap: 0;
    align-items: stretch;
    transition: transform .2s ease;
}
.expert-hero::after {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none; opacity: .5;
}
.expert-avatar {
    flex: 0 0 auto;
    width: 128px; height: 128px;
    border-radius: 28px;
    background-size: cover; background-position: center;
    border: 2px solid var(--ex-avatar-border);
    box-shadow: 0 14px 40px rgba(20,184,166,.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 54px;
    color: rgba(15,118,110,.5);
    background-color: var(--ex-avatar-bg);
}
.expert-id { flex: 1; min-width: 240px; }
.expert-name {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(30px, 5vw, 44px);
    font-weight: 800;
    line-height: 1.05;
    margin: 0 0 10px;
    background: linear-gradient(120deg, #2DD4BF 0%, #0E9F6E 45%, #DBA77D 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    letter-spacing: -0.5px;
}
.expert-spec {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px; font-weight: 600;
    color: #0F766E;
    background: rgba(15,118,110,.10);
    border: 1px solid rgba(15,118,110,.30);
}
.expert-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 10px;
    font-size: 12px;
    color: var(--ex-muted);
}
.expert-status .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #4ADE80; box-shadow: 0 0 10px #4ADE80;
}
/* Подтверждённые модерацией факты: ассоциация + опыт */
.expert-proof {
    display: flex; align-items: center; gap: 6px;
    margin-top: 8px; font-size: 13px;
    color: var(--ex-text, #e2e2e2);
}
.expert-proof .ep-ico { font-size: 14px; }
[data-theme="light"] .expert-proof { color: #333; }
.expert-bio {
    margin-top: 6px;
    color: var(--ex-text);
    font-size: 15px; line-height: 1.65;
    white-space: pre-wrap;
    max-width: 640px;
}

/* ─── 06.09.2026: двухчастёвый hero (имя+бейджи | мета-строка | разделитель | био+кнопки) ─── */
.expert-hero-top {
    display: flex;
    flex-direction: column;      /* три ряда: фото+бейджи | опыт | имя+мета */
    align-items: stretch;
    gap: 0;
}
.expert-name-block {
    display: block;              /* имя + мета — блок, не flex-элемент */
}
.expert-name-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.expert-photo-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.expert-badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.badge-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.expert-meta-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 10px;
}
.expert-assoc {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--ex-muted, #8aa0b5);
}
.ex-pill-exp {
    background: rgba(56, 189, 248, .12);
    border: 1px solid rgba(56, 189, 248, .45);
    color: #7dd3fc;
}
[data-theme="light"] .ex-pill-exp {
    background: rgba(56, 189, 248, .10);
    border: 1px solid rgba(56, 189, 248, .40);
    color: #0C71C3;
}
.expert-hero-divider {
    height: 1px;
    background: rgba(255, 255, 255, .08);
    margin: 14px 0 12px;
}
.expert-hero-bottom {
    display: block;
}

/* ─── Фото + компактные бейджи в одном ряду, переносятся при нехватке ширины ─── */
.expert-photo-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.ex-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}
.ex-pill-trust {
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.40);
    color: #4ADE80;
}
.ex-pill-medal {
    background: rgba(219, 167, 125, 0.15);
    border: 1px solid rgba(219, 167, 125, 0.50);
    color: #DBA77D;
    font-size: 16px;
}
/* Бейдж «Дипломы и награды» — кликабельная пилюля в hero-блоке, рядом с trust/medal.
   Стиль — как у .ex-pill (pill-форма, скруглённые края, hover), но золотистая палитра
   отличается от teal-trust, чтобы группа пилюль читалась разнообразно.
   <a> вместо <div> — даёт курсор и нативный переход; outline убираем только в фокусе,
   чтобы клавиатурная навигация осталась доступной. */
a.ex-diplomas-badge {
    text-decoration: none;
    cursor: pointer;
    color: #ECD06F;
    background: rgba(184, 134, 11, 0.14);
    border: 1px solid rgba(184, 134, 11, 0.45);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
a.ex-diplomas-badge:hover {
    background: rgba(184, 134, 11, 0.24);
    border-color: rgba(184, 134, 11, 0.65);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(184, 134, 11, 0.22);
}
a.ex-diplomas-badge:focus-visible {
    outline: 2px solid #ECD06F;
    outline-offset: 2px;
}
[data-theme="light"] a.ex-diplomas-badge {
    color: #B07F1A;
    background: rgba(184, 134, 11, 0.10);
    border-color: rgba(184, 134, 11, 0.45);
}
[data-theme="light"] a.ex-diplomas-badge:hover {
    background: rgba(184, 134, 11, 0.20);
    border-color: rgba(184, 134, 11, 0.65);
}
/* Бейдж «Дипломы и награды» вынесен в отдельную строку под пилюлями trust/medal,
   чтобы длинный текст не выталкивал компактный ряд единиц доверия и медали.
   Контейнер — блочный: занимает всю ширину .expert-photo-row, бейдж внутри — слева. */
.expert-diplomas-row {
    display: block;
    margin-top: 12px;
    width: 100%;
}
.expert-diplomas-row .ex-diplomas-badge {
    align-self: flex-start;
}
[data-theme="light"] .ex-pill-trust { color: #16A34A; border-color: rgba(22,163,74,.4); background: rgba(22,163,74,.08); }
[data-theme="light"] .ex-pill-medal { color: #B07F52; border-color: rgba(176,127,82,.5); background: rgba(219,167,125,.15); }

/* ─── Секции-карточки ─── */
.expert-section {
    border-radius: 20px;
    padding: 24px 26px;
    background: var(--ex-section-bg);
    border: 1px solid var(--ex-border);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 14px 40px rgba(0,0,0,.14);
}
.expert-section h2 {
    margin: 0 0 16px;
    font-family: 'Manrope', sans-serif;
    font-size: 17px; font-weight: 700;
    color: var(--ex-heading);
    display: flex; align-items: center; gap: 8px;
}

/* ─── Бейджы-кнопки слотов ─── */
.slot-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.slot-btn {
    display: inline-flex; align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 14px;
    font-size: 14px; font-weight: 600;
    color: var(--ex-text);
    background: rgba(20,184,166,.08);
    border: 1px solid var(--ex-border-strong);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    font-family: 'Inter', sans-serif;
    font-variant-numeric: tabular-nums;
}
.slot-btn:hover {
    transform: translateY(-2px);
    background: rgba(20,184,166,.18);
    box-shadow: 0 10px 24px rgba(20,184,166,.25);
}
.slot-btn .price { color: #B8860B; font-weight: 700; }
[data-theme="dark"] .slot-btn .price { color: #ECD06F; }

/* ─── Команда помощников ─── */
.team-row { display: flex; flex-wrap: wrap; gap: 12px; }
.team-chip {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 14px;
    border-radius: 14px;
    background: var(--ex-chip-bg);
    border: 1px solid var(--ex-border);
}
.team-chip img, .team-chip .tc-av {
    width: 38px; height: 38px; border-radius: 12px;
    object-fit: cover; background: var(--ex-avatar-bg);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}
.team-chip b { font-size: 14px; color: var(--ex-heading); }
.team-chip span { font-size: 12px; color: var(--ex-muted); }

/* ─── Лента ─── */
.feed-list { display: flex; flex-direction: column; gap: 14px; }
.feed-item {
    border-radius: 16px;
    padding: 18px;
    background: var(--ex-item-bg);
    border: 1px solid var(--ex-border);
    transition: border-color .18s ease, transform .18s ease;
}
.feed-item:hover { border-color: rgba(15,118,110,.35); transform: translateY(-2px); }
.feed-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.feed-badge {
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
    padding: 3px 9px; border-radius: 999px;
}
.feed-badge.post { background: rgba(184,134,11,.12); color: #8a6a1a; border: 1px solid rgba(184,134,11,.30); }
.feed-badge.event { background: rgba(15,118,110,.12); color: #0F766E; border: 1px solid rgba(15,118,110,.30); }
.feed-date { font-size: 12px; color: var(--ex-muted); margin-left: auto; }
.feed-item .fi-title { font-size: 15px; font-weight: 700; color: var(--ex-heading); }
.feed-item .fi-text { color: var(--ex-text); font-size: 14px; margin-top: 4px; white-space: pre-wrap; }
.feed-item .fi-link { text-decoration: none; color: inherit; display: block; transition: opacity .15s; }
.feed-item .fi-link:hover .fi-text { color: var(--accent, #2DD4BF); }
.feed-item .fi-more {
    display: inline-flex; align-items: center; gap: 4px;
    margin-top: 8px; font-size: 13px; font-weight: 600;
    color: var(--accent, #0F766E); text-decoration: none;
    transition: gap .15s;
}
.feed-item .fi-more:hover { gap: 8px; }
.feed-media { margin-top: 12px; border-radius: 12px; overflow: hidden; max-width: 480px; }
.feed-media img { width: 100%; display: block; border-radius: 12px; }
.feed-media iframe, .feed-media video { width: 100%; aspect-ratio: 16/9; border: 0; display: block; border-radius: 12px; }

/* Лайки */
.fi-actions { margin-top: 10px; display: flex; align-items: center; }
.fi-like-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid rgba(128,128,128,.25); border-radius: 20px; padding: 4px 12px; cursor: pointer; font-size: 14px; color: var(--ex-muted); transition: all .15s ease; }
.fi-like-btn:hover { border-color: rgba(220,38,38,.4); background: rgba(220,38,38,.08); color: #DC2626; }
.fi-like-btn.liked { border-color: rgba(220,38,38,.5); background: rgba(220,38,38,.1); color: #DC2626; }
.fi-like-icon { font-size: 14px; line-height: 1; }
.fi-like-count { font-weight: 600; font-variant-numeric: tabular-nums; }

/* ─── Пусто ─── */
.empty-glow { color: var(--ex-muted); font-size: 14px; text-align: center; padding: 24px; }

/* ─── Модалка записи ─── */
.modal-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(6,8,12,.55);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    display: none; align-items: center; justify-content: center;
}
.modal-card {
    width: 90%; max-width: 400px;
    border-radius: 20px; padding: 28px;
    background: var(--ex-card-bg);
    border: 1px solid var(--ex-border-strong);
    box-shadow: var(--ex-shadow);
    color: var(--ex-heading);
}
.modal-card h3 { margin: 0 0 6px; font-family: 'Manrope', sans-serif; color: var(--ex-heading); }
.modal-card .m-sub { color: var(--ex-muted); font-size: 13px; margin-bottom: 16px; }
.modal-card input {
    width: 100%; box-sizing: border-box;
    padding: 12px 14px; margin: 6px 0;
    border-radius: 12px;
    background: var(--ex-input-bg);
    border: 1px solid var(--ex-input-border);
    color: var(--ex-heading); font-size: 14px; outline: none;
}
.modal-card input:focus { border-color: #2DD4BF; }
.modal-card .m-msg { font-size: 13px; margin-top: 8px; color: #0F766E; }
.modal-card .m-msg.err { color: #DC2626; }
.modal-actions { display: flex; gap: 10px; margin-top: 16px; }
.btn-ghost2 {
    flex: 1; padding: 12px; border-radius: 12px; cursor: pointer;
    background: transparent; border: 1px solid var(--ex-input-border); color: var(--ex-heading); font-weight: 600;
}
.btn-primary2 {
    flex: 1; padding: 12px; border-radius: 12px; cursor: pointer;
    background: linear-gradient(120deg, #0F766E, #14B8A6);
    border: none; color: #fff; font-weight: 700;
    box-shadow: 0 8px 22px rgba(20,184,166,.3);
}
.btn-primary2:hover { transform: translateY(-1px); }
.btn-primary2.copied-ok { background: #22c55e !important; color: #08130a !important; }

/* Кнопка «Напроситься в команду» — в едином стиле сайта (teal CTA), компактная */
.btn-join {
    align-self: flex-start;      /* не растягивается на всю ширину колонки */
    max-width: 100%;             /* не вылезает из колонки, если текста много */
    box-sizing: border-box;
    padding: 10px 16px;          /* компактнее, чтобы вписаться в шапку */
    font-size: 14px;
    /* white-space: nowrap убран — длинный текст «Напроситься в команду» переносится,
       иначе кнопка вылезала из .expert-hero-actions на узких экранах. */
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border-radius: 12px; cursor: pointer;
    background: linear-gradient(120deg, #0F766E, #14B8A6);
    border: none; color: #fff; font-weight: 700;
    box-shadow: 0 8px 22px rgba(20,184,166,.3);
}
.btn-join:hover { transform: translateY(-1px); }

/* ─── Кнопки внизу героя: компактные, по контенту, в ряд ─── */
.expert-hero-actions {
    display: flex;
    flex-direction: row;         /* 06.09.2026: кнопки строкой под описанием */
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
    z-index: 1;
}
/* ─── Адаптив ─── */
@media (max-width: 760px) {
    /* Экспертный hero на мобильном: колонка, без absolute-углов */
    .expert-hero {
        padding: 16px 14px;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
    /* Hero-top: column — три ряда друг под другом */
    .expert-hero-top {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    /* Ряд 1: аватар + бейджи в одну строку, переносятся при необходимости */
    .expert-photo-row {
        gap: 10px 12px;
    }
    .expert-photo-row .expert-badges {
        gap: 6px;
    }
    .expert-photo-row .badge-line {
        gap: 6px;
        flex-wrap: wrap;
    }
    /* Компактные бейджи на мобиле — 6 пил в две строки умещаются рядом с фото 72px */
    .expert-photo-row .ex-pill {
        font-size: 11px;
        padding: 4px 8px;
        gap: 3px;
    }
    .expert-photo-row .ex-pill-medal {
        font-size: 13px;
    }
    /* Ряд 2 (опыт убран — теперь внутри .expert-badges) */
    /* Ряд 3 (имя + мета): на всю ширину */
    .expert-name-block {
        margin-top: 12px;
    }
    .expert-name {
        font-size: 26px;
    }
    .expert-meta-line {
        gap: 10px;
        margin-top: 8px;
    }
    .expert-hero-divider {
        margin: 12px 0 10px;
    }
    /* Кнопки: СТРОГО в одну строку (row), compact, не растянуты */
    .expert-hero-actions {
        flex-direction: row;            /* в одну линию */
        align-items: center;
        flex-wrap: nowrap;              /* жёстко: одна строка, без переноса */
        gap: 10px;
        margin-left: 0;
        padding-top: 0;
        align-self: stretch;
    }
    .expert-hero-actions .fav-star-btn,
    .expert-hero-actions .ex-share-btn,
    .expert-hero-actions .btn-join {
        flex: 0 0 auto;                /* по контенту, НЕ растягивать */
        justify-content: center;
        padding: 10px 14px;
        min-width: 0;
    }
    /* «Напроситься в команду» — компактно, в ту же строку */
    .expert-hero-actions .btn-join {
        white-space: nowrap;
        font-size: 13px;
        padding: 10px 12px;
        gap: 4px;
    }
    /* Фото меньше на мобиле */
    .expert-avatar {
        width: 72px; height: 72px;
        font-size: 30px; border-radius: 20px;
    }
    /* Бейджи дипломов на мобиле — перенос текста, не вылезают; высота ровно как у остальных */
    .expert-badges .ex-diplomas-badge {
        white-space: normal;
        padding: 4px 8px;
        font-size: 11px;
        max-width: 100%;
    }
    .expert-badges .ex-pill-medal {
        font-size: 11px;
    }
    /* Уменьшаем отступы на мобильных (визитка) */
    .expert-bio {
        margin-top: 2px;
    }
    .expert-meta-line {
        margin-top: 4px;
    }
    .expert-assoc {
        margin-top: 2px;
    }
}
/* ─── Кнопка «Поделиться» в шапке визитки ─── */
.ex-share-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 11px 18px; border-radius: 14px; cursor: pointer;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.32);
    color: inherit; font-weight: 600; font-size: 14px;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    transition: all .2s;
}
.expert-hero-actions .ex-share-btn { align-self: stretch; margin-left: 0; }
.ex-share-btn:hover { background: rgba(255,255,255,.20); transform: translateY(-1px); }
[data-theme="light"] .ex-share-btn { background: rgba(15,118,110,.10); border-color: rgba(15,118,110,.35); color: #0F766E; }
[data-theme="light"] .ex-share-btn:hover { background: rgba(15,118,110,.18); }

/* ─── Попап «Поделиться» ─── */
.share-card { max-width: 380px; }
.share-sub { margin: 4px 0 16px; color: var(--ink-soft, #888); font-size: 13px; }
.share-row { display: flex; gap: 10px; margin-bottom: 16px; }
.share-net {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 14px 8px; border-radius: 14px; text-decoration: none;
    font-size: 12.5px; font-weight: 600; color: var(--ink, #1a1a1a);
    background: rgba(127,127,127,.1); border: 1px solid rgba(127,127,127,.18);
    transition: all .2s;
}
.share-net:hover { transform: translateY(-2px); }
.share-tg:hover { background: rgba(0,136,204,.14); border-color: rgba(0,136,204,.4); }
.share-wa:hover { background: rgba(37,211,102,.14); border-color: rgba(37,211,102,.4); }
.share-vk:hover { background: rgba(0,119,255,.14); border-color: rgba(0,119,255,.4); }
.share-url { display: flex; gap: 8px; }
.share-url input {
    flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px;
    border: 1px solid rgba(127,127,127,.3); background: rgba(127,127,127,.07);
    color: var(--ink, #1a1a1a); font-size: 12.5px;
}
.share-cancel { width: 100%; margin-top: 10px; }

/* ─── Кнопка «В избранное» (визитка) — красивый стеклянный стиль ─── */
.fav-star-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 14px;
    cursor: pointer;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.32);
    color: #fff;                     /* как у .ev-share-btn: белый текст (был inherit → тёмный в светлой теме) */
    font-weight: 600;
    font-size: 14px;
    transition: all .2s;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.fav-star-btn:hover { background: rgba(255,255,255,.20); transform: translateY(-1px); }
.fav-star-btn .fav-star-label { font-size: 13px; }
.fav-star-btn.on {
    background: linear-gradient(135deg, #2DD4BF, #4ADE80, #ECD06F);
    color: #06221c;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(45,212,191,.30);
}
/* SVG-звезда: стабильное выравнивание вместо текстовых символов звёзд */
.fav-star-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linejoin: round;
}
.fav-star-btn.on .fav-star-icon,
.fav-star-btn .fav-star-icon.lit {
    fill: #FBBF24;              /* золотая звезда ⭐ в выбранном состоянии */
    stroke: #D97706;            /* тёплый янтарный контур — читается на градиенте */
}

/* ─── Контакты (соцсети) на визитке — подписка «Контакты» ─── */
.expert-contacts { margin-top: 4px; }
.soc-row { display: flex; flex-wrap: wrap; gap: 10px; }
.soc-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    color: inherit;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all .2s;
}
.soc-chip:hover { background: rgba(255,255,255,.16); transform: translateY(-1px); }
[data-theme="light"] .soc-chip { background: rgba(15,118,110,.06); border-color: rgba(15,118,110,.25); color: #0F766E; }
[data-theme="light"] .soc-chip:hover { background: rgba(15,118,110,.12); }


/* Светлая тема: кнопка «В избранное» — в едином зелёном стиле с «Поделиться» */
[data-theme="light"] .fav-star-btn {
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(20,17,13,.22);
    color: #14110D;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
[data-theme="light"] .fav-star-btn:hover { background: rgba(255,255,255,1); }

.share-ic { width: 26px; height: 26px; object-fit: contain; display: block; flex-shrink: 0; }
