/* Вкладка профиля «MCP». Отступы карточек — как у .profile-card: 20 и радиус 24, до 1279px — 16 и 16. */
.mc { display: flex; flex-direction: column; gap: 16px; }
.mc svg { display: block; flex: none; }

/* Логотипы приложений и знак HireHi */
.mc-app { --s: 40px; display: grid; place-items: center; flex: none; width: var(--s); height: var(--s); border-radius: calc(var(--s) * 0.3); color: #fff; background: #0D0D0D; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.mc-app svg { width: 56%; height: 56%; }
.mc-app--claude { background: #D97757; }
.mc-app--claudecode { background: #262624; color: #D97757; }
.mc-app--cursor { background: #FFFFFF; color: #0D0D0D; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); }
.mc-app--codex { background: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); }
/* Знак Codex: облако с градиентом и вырезом «>_» — маской, без id градиента в разметке (плитка повторяется на странице) */
.mc-codex { width: 72%; height: 72%; background: linear-gradient(135deg, #8FC2FF 10%, #5B7CF7 50%, #7B4FE8 90%);
    -webkit-mask: var(--mc-codex) center / contain no-repeat; mask: var(--mc-codex) center / contain no-repeat;
    --mc-codex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cmask id='m'%3E%3Crect width='24' height='24' fill='%23fff'/%3E%3Cpath d='M8.6 10.2l2.6 2.5-2.6 2.5M12.9 15.2h3' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/mask%3E%3Cg mask='url(%23m)'%3E%3Ccircle cx='12' cy='8.2' r='5'/%3E%3Ccircle cx='6.9' cy='11.6' r='4.3'/%3E%3Ccircle cx='17.1' cy='11.6' r='4.3'/%3E%3Ccircle cx='8.9' cy='15.6' r='4'/%3E%3Ccircle cx='15.1' cy='15.6' r='4'/%3E%3Ccircle cx='12' cy='12.6' r='5.6'/%3E%3C/g%3E%3C/svg%3E"); }
.mc-app--url { background: var(--surface-secondary); color: var(--text-muted); box-shadow: none; }
.mc-logo { display: block; flex: none; width: var(--s, 40px); height: var(--s, 40px); }
.mc-btn-icon { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.mc-btn-icon svg { width: 20px; height: 20px; }

/* Первый экран: текст сверху, приложения снизу, справа — пример разговора */
.mc-hero { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 32px; padding: 8px 8px 8px 20px; border-radius: 24px; background: var(--surface-primary); }
.mc-hero-body { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 20px; min-width: 0; padding: 12px 0; }
.mc-hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.mc-hero h2 { margin: 4px 0 0; font-size: var(--fs-40); line-height: var(--lh-40); letter-spacing: var(--ls-40); font-weight: var(--fw-semibold); color: var(--text-color); }
.mc-hero h2 span { color: var(--text-muted); }
.mc-hero p { margin: 0; max-width: 44ch; font-size: var(--fs-16); line-height: var(--lh-16); color: var(--text-muted); }
.mc-works { display: flex; align-items: center; gap: 12px; font-size: var(--fs-14); line-height: var(--lh-14); color: var(--text-muted); }
.mc-stack { display: flex; gap: 6px; }
.mc-stack .mc-app { --s: 28px; }

.mc-scene { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; background: var(--surface-secondary); font-size: var(--fs-14); line-height: var(--lh-14); }
.mc-scene-top { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: var(--fs-12); line-height: var(--lh-12); }
.mc-scene-top .mc-app { --s: 20px; border-radius: 6px; }
.mc-bubble { align-self: flex-end; max-width: 88%; padding: 10px 14px; border-radius: 18px 18px 6px 18px; background: var(--accent-color); color: #fff; }
.mc-tool { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 4px 10px 4px 5px; border-radius: 999px; background: var(--surface-primary); color: var(--text-muted); font-size: var(--fs-12); line-height: var(--lh-12); }
.mc-tool .mc-logo { --s: 18px; }
.mc-answer { display: flex; flex-direction: column; border-radius: 16px; background: var(--surface-primary); overflow: hidden; }
.mc-job { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.mc-job + .mc-job { border-top: 1px solid var(--filter-divider); }
.mc-job-logo { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px; color: #fff; font-size: 12px; font-weight: var(--fw-semibold); object-fit: cover; }
.mc-job-text { display: grid; min-width: 0; flex: 1; }
.mc-job-text b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: var(--fw-medium); color: var(--text-color); }
.mc-job-text span { color: var(--text-muted); font-size: var(--fs-12); line-height: var(--lh-12); }
.mc-match { flex: none; padding: 2px 8px; border-radius: 999px; font-size: var(--fs-12); line-height: var(--lh-12); font-weight: var(--fw-semibold); background: var(--surface-secondary); color: var(--text-color); font-variant-numeric: tabular-nums; }
.mc-reply { color: var(--text-color); }
.mc-draft { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border-radius: 16px; background: var(--surface-primary); }
.mc-draft .mc-logo { --s: 28px; }
.mc-draft div { display: grid; flex: 1; min-width: 0; }
.mc-draft b { font-weight: var(--fw-medium); color: var(--text-color); }
.mc-draft span { font-size: var(--fs-12); line-height: var(--lh-12); color: var(--text-muted); }
.mc-draft i { flex: none; padding: 6px 12px; border-radius: 10px; font-style: normal; font-size: var(--fs-12); line-height: var(--lh-12); font-weight: var(--fw-medium); background: var(--surface-secondary); color: var(--text-color); }

/* Первый экран без PRO: витрина как у Хайрика на «Кандидатам», тёмная в обеих темах */
.mc-hero--pro { padding: 16px 16px 16px 20px; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  background: radial-gradient(70% 80% at 100% 0%, rgba(255, 143, 74, 0.24) 0%, transparent 60%), radial-gradient(60% 70% at 0% 100%, rgba(73, 161, 130, 0.14) 0%, transparent 60%), #111214; }
.mc-hero--pro::before, .mc-hero--pro::after { content: ''; position: absolute; z-index: -1; width: 520px; height: 520px; border-radius: 50%; filter: blur(40px); pointer-events: none; }
.mc-hero--pro::before { top: -34%; left: 28%; background: radial-gradient(circle, rgba(255, 143, 74, 0.26) 0%, rgba(255, 119, 51, 0.1) 40%, transparent 70%); animation: mc-drift 22s ease-in-out infinite alternate; }
.mc-hero--pro::after { right: -12%; bottom: -48%; background: radial-gradient(circle, rgba(244, 193, 123, 0.18) 0%, rgba(224, 207, 140, 0.06) 45%, transparent 70%); animation: mc-drift2 26s ease-in-out infinite alternate; }
@keyframes mc-drift { to { transform: translate(-240px, 170px) scale(1.25); } }
@keyframes mc-drift2 { from { transform: scale(1.1); } to { transform: translate(-300px, -130px) scale(0.9); } }
.mc-hero--pro .mc-hero-body { justify-content: flex-start; padding: 4px 0; } /* сцена повёрнута — углам нужен запас от края */
.mc-hero--pro .mc-hero-copy { gap: 12px; }
.mc-pro-tag { display: flex; align-items: center; gap: 10px; font-size: var(--fs-14); color: rgba(255, 255, 255, 0.7); }
.mc-pro-tag span:first-child { width: 46px; height: 26px; background: url(/static/img/pro-header-button.svg) center / 100% 100% no-repeat; color: #fff; font-size: 11px; line-height: 26px; font-weight: var(--fw-semibold); text-align: center; }
.mc-hero--pro h2 { color: #fff; }
.mc-hero--pro h2 span { background: linear-gradient(90deg, #F4C17B, #FF8F4A, #E0CF8C, #F4C17B); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: mc-grad 14s linear infinite; }
@keyframes mc-grad { to { background-position: -200% 0; } }
.mc-hero--pro p { color: rgba(255, 255, 255, 0.64); }
.mc-facts { display: flex; gap: 8px; margin-top: 8px; }
.mc-facts div { display: grid; padding: 10px 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.07); font-size: var(--fs-12); line-height: var(--lh-12); color: rgba(255, 255, 255, 0.6); }
.mc-facts b { font-size: var(--fs-20); line-height: var(--lh-20); font-weight: var(--fw-semibold); color: #fff; font-variant-numeric: tabular-nums; }
.mc-hero--pro .btn { margin-top: auto; background: #fff; color: #111214; }
.mc-hero--pro .btn:hover { background: #F0F0F0; }
.mc-hero--pro .mc-scene { background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 0 24px rgba(255, 255, 255, 0.03); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); transform: rotate(1.5deg); }
.mc-hero--pro .mc-scene-top, .mc-hero--pro .mc-job-text span, .mc-hero--pro .mc-draft span { color: rgba(255, 255, 255, 0.5); }
.mc-hero--pro .mc-bubble { background: #49A182; }
.mc-hero--pro .mc-tool { background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.6); }
.mc-hero--pro .mc-answer, .mc-hero--pro .mc-draft { background: rgba(255, 255, 255, 0.06); }
.mc-hero--pro .mc-job + .mc-job { border-color: rgba(255, 255, 255, 0.08); }
.mc-hero--pro .mc-job-text b, .mc-hero--pro .mc-reply, .mc-hero--pro .mc-draft b { color: #fff; }
.mc-hero--pro .mc-match { background: rgba(255, 255, 255, 0.08); color: #fff; }
.mc-hero--pro .mc-draft i { background: #fff; color: #111214; }
@media (prefers-reduced-motion: reduce) { .mc-hero--pro::before, .mc-hero--pro::after, .mc-hero--pro h2 span, .mc-row-text > span i { animation: none; } }

/* Карточки секций */
.mc-card { display: flex; flex-direction: column; gap: 16px; padding: 20px; border-radius: 24px; background: var(--surface-primary); }
.mc-card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.mc-card-head .profile-card-title { display: block; margin: 0; }
.mc-card-head span { white-space: nowrap; font-size: var(--fs-14); line-height: var(--lh-14); color: var(--text-muted); }

.mc-copy { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none; height: 40px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--surface-primary); color: var(--text-color); font: inherit; font-size: var(--fs-14); cursor: var(--cursor-pointer); }
.mc-copy svg { width: 20px; height: 20px; color: var(--text-muted); }
.mc-endpoint { display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 16px; border-radius: 16px; background: var(--surface-secondary); }
.mc-endpoint-label { flex: none; font-size: var(--fs-14); color: var(--text-muted); }
.mc-endpoint code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: var(--fw-medium) var(--fs-16)/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text-color); }

/* Выбор приложения: чипы сайта, выбранный — зелёная обводка */
.mc-apps { display: flex; flex-wrap: wrap; gap: 8px; }
.mc-apps .filter-chip { flex: none; gap: 8px; height: auto; padding: 6px 12px 6px 6px; white-space: nowrap; }
.mc-apps .mc-app { --s: 28px; border-radius: 8px; }
.mc-apps .filter-chip.active, html.dark-theme .mc-apps .filter-chip.active, html.dark-theme .mc-apps .filter-chip.active:hover { background-color: var(--surface-secondary); box-shadow: inset 0 0 0 2px var(--accent-color); }
.mc-apps .filter-chip.active .chip-text { color: var(--text-color); }

.mc-steps { display: flex; flex-direction: column; gap: 20px; }
.mc-steps[hidden] { display: none; }
.mc-step { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
.mc-step:not(:last-child)::before { content: ''; position: absolute; left: 15px; top: 40px; bottom: -16px; width: 2px; border-radius: 1px; background: var(--filter-divider); }
.mc-step-num { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-secondary); color: var(--text-color); font-size: var(--fs-14); font-weight: var(--fw-semibold); }
.mc-step-body { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; padding-top: 5px; }
.mc-step-body > strong { font-size: var(--fs-16); line-height: var(--lh-16); font-weight: var(--fw-medium); color: var(--text-color); }
.mc-step-body > p { margin: 0; font-size: var(--fs-14); line-height: var(--lh-14); color: var(--text-muted); }
.mc-step-body > p b { color: var(--text-color); font-weight: var(--fw-medium); }
.mc-step-body > .btn { margin-top: 8px; width: auto; text-decoration: none; }
.mc-code { display: flex; align-items: center; gap: 12px; align-self: stretch; margin-top: 8px; padding: 6px 6px 6px 16px; border-radius: 14px; background: var(--surface-secondary); color: var(--text-color); }
.mc-code pre { flex: 1; min-width: 0; margin: 0; padding: 8px 0; white-space: pre-wrap; overflow-wrap: break-word; overflow-x: auto; scrollbar-width: none; font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; font-variant-ligatures: none; }
.mc-code pre b { font-weight: inherit; white-space: nowrap; }
.mc-code pre i { font-style: normal; color: var(--text-muted); user-select: none; }
.mc-note { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: var(--surface-secondary); font-size: var(--fs-14); line-height: var(--lh-14); color: var(--text-muted); }
.mc-note svg { width: 20px; height: 20px; }
.mc-note b { color: var(--text-color); font-weight: var(--fw-medium); }

/* Подключённые приложения */
.mc-rows { display: flex; flex-direction: column; }
.mc-row { display: flex; align-items: flex-start; gap: 16px; padding: 16px 0; }
.mc-row + .mc-row { border-top: 1px solid var(--filter-divider); }
.mc-row:first-child { padding-top: 0; }
.mc-row:last-child { padding-bottom: 0; }
.mc-row .mc-app { --s: 48px; }
.mc-row-text { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.mc-row-text b { font-size: var(--fs-16); line-height: var(--lh-16); font-weight: var(--fw-medium); color: var(--text-color); overflow-wrap: anywhere; }
.mc-row-text > span { font-size: var(--fs-14); line-height: var(--lh-14); color: var(--text-muted); }
.mc-row-text > span i { display: inline-block; vertical-align: middle; width: 6px; height: 6px; margin: -2px 6px 0 0; border-radius: 50%; background: var(--accent-color); animation: mc-dot-pulse 1.6s ease-in-out infinite; }
/* Подключение живое — точка пульсирует волной, как статус рекрутера (recruiter-dot-pulse в recruiter_base.css) */
@keyframes mc-dot-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-color) 35%, transparent); } 70%, 100% { box-shadow: 0 0 0 6px transparent; } }
.mc-scopes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.mc-scopes span { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px 3px 6px; border-radius: 999px; background: var(--surface-secondary); color: var(--text-muted); font-size: var(--fs-12); line-height: var(--lh-12); }
.mc-scopes svg { width: 14px; height: 14px; }
.mc-row form { flex: none; align-self: center; margin: 0; }

/* Остаток на сегодня */
.mc-usage { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mc-usage > div { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 16px; background: var(--surface-secondary); }
.mc-usage-icon { display: flex; align-items: center; gap: 6px; font-size: var(--fs-14); line-height: var(--lh-14); color: var(--text-muted); }
.mc-usage-value { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; margin: 4px 0 0; padding-right: 48px; }
.mc-usage b { font-size: var(--fs-28); line-height: var(--lh-28); letter-spacing: var(--ls-28); font-weight: var(--fw-semibold); color: var(--text-color); font-variant-numeric: tabular-nums; }
.mc-usage small { font-size: var(--fs-12); line-height: var(--lh-12); color: var(--text-muted); }
/* Кольцо остатка в правом верхнем углу плитки: дорожка и дуга с круглыми концами, как у мэтча */
.mc .mc-ring { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; fill: none; stroke: var(--filter-divider); stroke-width: 6; }
.mc-ring-arc { stroke: var(--accent-color); stroke-linecap: round; }
/* «?» в заголовке карточки остатка: в строку с текстом, а не блоком (.mc svg) */
.mc .mc-help { display: inline-block; margin-left: 6px; vertical-align: -2px; }

@media (max-width: 1279px) {
  .mc-hero, .mc-hero--pro { grid-template-columns: 1fr; gap: 20px; padding: 8px; border-radius: 16px; }
  .mc-hero-body, .mc-hero--pro .mc-hero-body { padding: 8px 8px 0; }
  .mc-scene { border-radius: 12px; }
  .mc-hero h2 { font-size: var(--fs-28); line-height: var(--lh-28); }
  .mc-hero--pro .mc-scene { transform: none; }
  .mc-hero--pro .btn { margin-top: 0; }
  .mc-card, .mc .faq-card { padding: 16px; border-radius: 16px; }
  .mc-apps { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
  .mc-apps::-webkit-scrollbar { display: none; }
  .mc-usage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .mc-facts { flex-wrap: wrap; }
  .mc-facts div { flex: 1 1 0; }
  .mc-hero--pro .btn { width: 100%; }
  .mc-endpoint { flex-wrap: wrap; padding: 12px; gap: 8px; }
  .mc-endpoint code { flex-basis: 100%; }
  .mc-endpoint .mc-copy { width: 100%; }
  .mc-code .mc-copy { width: 40px; padding: 0; }
  .mc-code .mc-copy span { display: none; }
  .mc-row { flex-wrap: wrap; }
  .mc-row form, .mc-row .btn { width: 100%; }
}
/* Заголовок общего блока FAQ — как у карточек профиля (.profile-card-title) */
.mc .faq-card .seo-block-title { font-weight: var(--fw-medium); }

/* Переключатель MCP / API на сером фоне страницы: подложка — карточка, бегунок — серый, как выбранный чип */
.mc-switcher { align-self: flex-start; width: 240px; background: var(--surface-primary); }
.mc-switcher .segment-control-option { text-decoration: none; }
.mc-switcher .segment-control-option.active { color: var(--text-color); }
.mc-switcher .segment-control-indicator { background: var(--surface-secondary); box-shadow: none; }
.mc-switcher .segment-control-option { flex: 1; text-align: center; }
.mc-switcher .segment-control-indicator { width: calc((100% - 4px) / 2); }
.mc-switcher:has(a:last-child[aria-current]) .segment-control-indicator { transform: translateX(100%); }
@media (max-width: 1279px) { .mc-switcher { width: 100%; } }
