/* Страницы «Резюме [профессия]» и список профессий (php-templates/profession.php) */
.prof-page { max-width: 1040px; }
.prof-hero { padding: 28px 0 18px; }
.prof-hero h1 { font-family: 'Sora', sans-serif; font-size: clamp(26px, 4vw, 38px); line-height: 1.15; margin: 8px 0 12px; letter-spacing: -.02em; }
.prof-hero p { color: var(--ink-soft); font-size: 16px; line-height: 1.6; max-width: 760px; margin: 0; }
.prof-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.prof-section { margin: 34px 0; }
.prof-section h2 { font-family: 'Sora', sans-serif; font-size: clamp(20px, 2.6vw, 26px); margin: 0 0 12px; letter-spacing: -.01em; }
.prof-section h3 { font-size: 15px; margin: 0 0 10px; color: var(--ink); }
.prof-section p { line-height: 1.6; }
.prof-lead { color: var(--ink-soft); margin: 0 0 14px; }
.prof-note { color: var(--ink-soft); font-size: 13.5px; }

/* образец резюме: лист A4, уменьшенный под ширину колонки */
.prof-sample { background: var(--accent-soft); border: 1px solid var(--line); border-radius: 18px; padding: 18px; overflow: hidden; }
.prof-sample-scaler { position: relative; margin: 0 auto; max-width: 794px; }
.prof-sample .resume-doc { width: 794px; min-height: 1123px; background: #fff; box-shadow: 0 10px 30px -14px rgba(20,25,40,.35); }
html:not(.js) .prof-sample { overflow-x: auto; }

.prof-about { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.prof-about-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.prof-about-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.prof-about-card p { margin: 0; color: var(--ink); font-size: 14.5px; }

.prof-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.prof-two > div { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.prof-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.prof-chips li { background: var(--accent-soft); color: var(--ink); border-radius: 999px; padding: 6px 12px; font-size: 14px; }
.prof-list { margin: 0; padding-left: 20px; }
.prof-list li { margin: 6px 0; line-height: 1.5; }
.prof-list-ok li::marker { content: '✓  '; color: var(--success); }
.prof-list-bad li::marker { content: '✗  '; color: var(--danger); }

.prof-table-wrap { overflow-x: auto; }
.prof-table { width: 100%; max-width: 560px; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.prof-table th, .prof-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.prof-table th { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.prof-table td:last-child, .prof-table th:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.prof-table tr:last-child td { border-bottom: none; }
.prof-total td { font-weight: 700; }

.prof-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 10px 0 30px; }
.prof-grid-sm { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin-bottom: 10px; }
.prof-card { display: flex; flex-direction: column; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; color: var(--ink); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.prof-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.prof-card-icon { font-size: 24px; }
.prof-card b { font-size: 16px; }
.prof-card span:not(.prof-card-icon) { color: var(--ink-soft); font-size: 13.5px; line-height: 1.45; }

.prof-cta { margin: 40px 0 10px; padding: 30px 26px; border-radius: 22px; text-align: center; color: #fff; background: linear-gradient(135deg, #4f46e5, #2f6fed); }
.prof-cta h2 { font-family: 'Sora', sans-serif; margin: 0 0 8px; color: #fff; }
.prof-cta p { margin: 0 auto 18px; max-width: 600px; opacity: .92; }

/* «Резюме под вакансию» (php-templates/resume-match.php) */
.vm-modes { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin: 0 0 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.vm-modes button { border: none; background: none; padding: 9px 16px; border-radius: 10px; font: inherit; font-weight: 700; font-size: 14px; color: var(--ink-soft); cursor: pointer; }
.vm-modes button.active { background: var(--accent); color: var(--accent-ink); }
.vm-area-lg { min-height: 220px; }
.vm-page [hidden] { display: none !important; } /* .btn и grid-блоки иначе перекрывают атрибут hidden */
.vm-create-actions { display: grid; gap: 12px; justify-items: start; }
.vm-create-actions .vm-parts { margin: 0; }
#vmCreateOut:empty { display: none; }
.vm-form { display: grid; gap: 16px; margin: 6px 0 10px; }
.vm-form .btn-lg { justify-self: start; }
.vm-input { width: 100%; box-sizing: border-box; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; font-size: 14.5px; }
.vm-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.vm-input:disabled { opacity: .5; }
.vm-area { min-height: 160px; resize: vertical; margin-top: 6px; }
.vm-label { display: block; margin: 12px 0 0; font-size: 13px; color: var(--ink-soft); }
.vm-score-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 8px; }
.vm-score { --p: 0; --c: var(--danger); width: 128px; height: 128px; border-radius: 50%; display: grid; place-content: center; text-align: center; flex-shrink: 0;
  background: radial-gradient(closest-side, var(--panel) 78%, transparent 79% 100%), conic-gradient(var(--c) calc(var(--p) * 1%), var(--line) 0); }
.vm-score.is-mid { --c: #e0a400; } .vm-score.is-high { --c: var(--success); }
.vm-score b { font-size: 30px; font-family: 'Sora', sans-serif; }
.vm-score span { font-size: 11.5px; color: var(--ink-soft); max-width: 90px; line-height: 1.25; }
.vm-vacancy { display: flex; flex-direction: column; gap: 3px; }
.vm-vacancy b { font-size: 18px; }
.vm-vacancy span, .vm-vacancy a { color: var(--ink-soft); font-size: 14px; }
.vm-title-match { font-weight: 600; margin: 4px 0 14px; }
.vm-ok li { background: color-mix(in srgb, var(--success) 14%, transparent); }
.vm-miss li { background: color-mix(in srgb, var(--danger) 12%, transparent); }
.vm-ai { margin-top: 26px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.vm-ai h2 { margin-top: 0; }
.vm-parts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 4px 0 16px; font-weight: 600; }
.vm-parts input { accent-color: var(--accent); width: 17px; height: 17px; vertical-align: -3px; }
.vm-ai-out { display: grid; gap: 14px; margin-top: 18px; }
.vm-block { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--bg); }
.vm-pre { white-space: pre-line; margin: 0; line-height: 1.6; }
.vm-q { margin: 0; padding-left: 20px; }
.vm-q li { margin: 8px 0; }
.vm-q span { display: block; color: var(--ink-soft); font-size: 14px; margin-top: 2px; }
.vm-comment { margin: 0; }

@media (max-width: 600px) {
  .prof-sample { padding: 10px; border-radius: 14px; }
  .prof-actions .btn { flex: 1 1 100%; text-align: center; }
}
