@font-face {
    font-family: 'Intro Demo Black Caps';
    src: url('/static/fonts/intro-demo-black-caps.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'PT Mono';
    src: url('/static/fonts/pt-mono_regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* { box-sizing: border-box; }

body {
    font-family: 'PT Mono', monospace;
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    color: #111;
    line-height: 1.4;
}

/* ── Шапка ── */
.iv-header {
    background: transparent;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}
.iv-logo { height: 28px; width: auto; display: block; }
.iv-logo-text {
    font-family: 'Intro Demo Black Caps', Arial, sans-serif;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 3px;
    color: #000;
    text-decoration: none;
}
.iv-back {
    font-size: 11px;
    letter-spacing: 1px;
    color: #888;
    text-decoration: none;
    text-transform: uppercase;
}
.iv-back:hover { color: #000; }

.container { max-width: 860px; margin: 0 auto; padding: 0 24px 60px; }

/* ── Заголовок ── */
.page-header { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 3px solid #000; }
.page-eyebrow {
    font-size: 10px; font-weight: 700; letter-spacing: 3px;
    text-transform: uppercase; color: #888; margin: 0 0 10px;
}
.page-title {
    font-size: 20px; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; margin: 0 0 16px; line-height: 1.3;
}
.page-lead { font-size: 13px; line-height: 1.65; color: #333; margin: 0; }

/* ── Шапка: навигация ── */
.iv-nav { display: flex; align-items: center; gap: 18px; }
.iv-nav-btn {
    font-size: 11px; letter-spacing: 1px; text-transform: uppercase; text-decoration: none;
    color: #000; border: 2px solid #000; padding: 6px 12px; background: #fff;
}
.iv-nav-btn:hover { background: #d5ffe3; }

/* ── Поисковая «главная» ── */
.pc-main { max-width: 860px; margin: 0 auto; padding: 0 24px 60px; }
.pc-hero {
    min-height: 62vh; display: flex; flex-direction: column; justify-content: center;
    padding-bottom: 6vh; transition: min-height .35s ease, padding .35s ease;
}
.pc-main.is-results .pc-hero { min-height: 0; padding: 4px 0 8px; }

.pc-brand {
    text-align: center; max-height: 260px; overflow: hidden; margin-bottom: 28px;
    transition: max-height .35s ease, opacity .25s ease, margin .35s ease;
}
.pc-main.is-results .pc-brand { max-height: 0; opacity: 0; margin-bottom: 0; }
.pc-logo { display: block; width: 168px; height: auto; margin: 0 auto; }
/* на «главной» логотип уже в центре, в шапке он дублировал бы его */
body:has(.pc-main:not(.is-results)) .iv-header > a { visibility: hidden; }
.pc-h1 {
    font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
    color: #888; margin: 18px 0 6px;
}
.pc-sub { font-size: 12px; color: #777; margin: 0; line-height: 1.6; }
.pc-sub--under { text-align: center; margin-top: 14px; }
.pc-main.is-results .pc-sub--under { display: none; }

.pc-combo { position: relative; }
.pc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pc-icon { position: absolute; left: 18px; top: 50%; margin-top: -10px; color: #3e3e3e; pointer-events: none; }
.pc-input {
    width: 100%; font-family: 'PT Mono', monospace; font-size: 17px; height: 66px;
    padding: 0 136px 0 54px; border: 3px solid #000; border-radius: 0;
    background: #fff; color: #111; outline: none; box-shadow: 5px 5px 0 #3e3e3e;
}
.pc-input:focus { box-shadow: 5px 5px 0 #d5ffe3, 5px 5px 0 2px #000; }
.pc-input::placeholder { color: #999; font-size: 14px; }
.pc-go {
    position: absolute; top: 3px; right: 3px; bottom: 3px; width: 118px;
    border: 0; background: #000; color: #d5ffe3; cursor: pointer;
    font-family: 'PT Mono', monospace; font-size: 12px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
}
.pc-go:hover { background: #3e3e3e; }
.pc-list {
    position: absolute; left: 0; right: 5px; top: 100%; z-index: 50; margin: 3px 0 0; padding: 0;
    list-style: none; max-height: 340px; overflow-y: auto;
    background: #fff; border: 3px solid #000; box-shadow: 5px 5px 0 #3e3e3e;
}
.pc-list[hidden] { display: none; }
.pc-opt {
    padding: 13px 18px; font-size: 14px; cursor: pointer; border-top: 1px solid #e5e5e5;
}
.pc-opt:first-child { border-top: 0; }
.pc-opt:hover, .pc-opt.active { background: #d5ffe3; }
.pc-opt mark { background: #ffffcc; color: inherit; }
.pc-opt--custom { background: #000; color: #fff; font-weight: 700; }
.pc-opt--custom:hover, .pc-opt--custom.active { background: #3e3e3e; }

.pc-chips {
    list-style: none; margin: 26px 0 0; padding: 0;
    display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
}
.pc-main.is-results .pc-chips { margin-top: 16px; justify-content: flex-start; }
.pc-result { margin-top: 20px; }
.pc-main:not(.is-results) .pc-result { margin-top: 0; }

.pc-foot {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px;
    padding: 20px 24px 28px; border-top: 1px solid #ddd;
}
.pc-foot a { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #888; text-decoration: none; }
.pc-foot a:hover { color: #000; }

/* ── Секции-блоки ── */
.section-block { border: 2px solid #3e3e3e; margin-bottom: 12px; background: #fff; }
.section-header {
    background: #3e3e3e; color: #fff; padding: 12px 20px;
    display: flex; align-items: center; gap: 14px;
}
.section-num { font-size: 18px; font-weight: 700; color: #d5ffe3; line-height: 1; flex-shrink: 0; }
.section-title { font-size: 12px; font-weight: 700; letter-spacing: 2px; margin: 0; text-transform: uppercase; }
.section-body { padding: 20px 24px; }

/* ── Содержимое профиля ── */
.pc-profile { animation: pcIn .25s ease-out; }
@keyframes pcIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pc-tasks, .pc-skills, .pc-plain, .pc-subtasks { list-style: none; margin: 0; padding: 0; }
.pc-tasks > li { margin-bottom: 18px; }
.pc-tasks > li:last-child { margin-bottom: 0; }
.pc-task-row { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; }
.pc-bar { height: 6px; background: #e5e5e5; margin: 6px 0 8px; }
.pc-bar span { display: block; height: 100%; background: #3e3e3e; }
.pc-subtasks li { font-size: 12px; color: #555; padding-left: 14px; position: relative; line-height: 1.7; }
.pc-subtasks li::before { content: '–'; position: absolute; left: 0; }
.pc-skills li {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    font-size: 13px; padding: 8px 0; border-bottom: 1px solid #eee;
}
.pc-skills li:last-child { border-bottom: 0; }
.pc-more { margin-top: 6px; display: flex; flex-direction: column; }
.pc-more > summary {
    order: 2; list-style: none; cursor: pointer; display: block; width: 100%; margin-top: 8px;
    padding: 5px 12px; text-align: center; font-size: 11px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase; color: #000;
    background: #d5ffe3; border: 1px solid #000;
}
.pc-more > summary::-webkit-details-marker { display: none; }
.pc-more > summary::before { content: attr(data-more) ' ▾'; }
.pc-more[open] > summary::before { content: attr(data-less) ' ▴'; }
.pc-more > summary:hover { background: #b8f0cc; }
.pc-more > .pc-skills { order: 1; }
.pc-level { display: inline-flex; gap: 4px; flex-shrink: 0; }
.pc-level i { width: 14px; height: 14px; border: 2px solid #3e3e3e; background: #fff; }
.pc-level i.on { background: #d5ffe3; border-color: #000; }
.pc-stage { margin-bottom: 16px; }
.pc-stage:last-child { margin-bottom: 0; }
.pc-stage-label {
    display: inline-block; margin: 0 0 8px; padding: 3px 10px; background: #d5ffe3; border: 1px solid #000;
    font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
}
.pc-evidence { display: block; font-size: 12px; color: #666; line-height: 1.6; }
.pc-plain li { font-size: 13px; line-height: 1.7; padding-left: 16px; position: relative; }
.pc-plain li::before { content: '■'; position: absolute; left: 0; font-size: 8px; top: 6px; }

/* ── CTA ── */
.cta-block { border: 2px solid #000; background: #000; color: #fff; padding: 28px 24px; margin: 24px 0; text-align: center; }
.cta-title { font-size: 15px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #fff; margin: 0 0 12px; }
.cta-text { font-size: 13px; line-height: 1.65; color: #bbb; margin: 0 0 20px; }
.cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn-cta {
    font-family: 'PT Mono', monospace; font-size: 12px; font-weight: 700; letter-spacing: 1px;
    text-decoration: none; text-transform: uppercase; padding: 9px 20px;
    border: 2px solid transparent; cursor: pointer; display: inline-block;
}
.btn-cta--primary { background: #d5ffe3; color: #000; border-color: #d5ffe3; }
.btn-cta--primary:hover { background: #b8f0cc; border-color: #b8f0cc; }
.btn-cta--pink { background: #a2ee7f; color: #000; border-color: #a2ee7f; }
.btn-cta--pink:hover { background: #8fdc6a; border-color: #8fdc6a; }

/* ── Плашки должностей ── */
.pc-chip {
    display: inline-block; padding: 8px 14px; font-size: 12px; text-decoration: none;
    color: #111; background: #fff; border: 2px solid #3e3e3e;
}
.pc-chip:hover, .pc-chip.active { background: #d5ffe3; border-color: #000; }

@media (max-width: 600px) {
    .container, .pc-main { padding-left: 14px; padding-right: 14px; }
    .pc-hero { min-height: 56vh; }
    .pc-logo { width: 140px; }
    .pc-input { height: 54px; font-size: 14px; padding-right: 96px; }
    .pc-input::placeholder { font-size: 12px; }
    .pc-go { width: 82px; letter-spacing: 1px; }
    .iv-nav { gap: 10px; }
    .page-title { font-size: 16px; }
    .section-body { padding: 16px; }
    .cta-buttons { flex-direction: column; }
    .btn-cta { text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .pc-profile { animation: none; } .pc-hero, .pc-brand { transition: none; } }

.pc-hint { padding: 10px 18px; color: #8a8a8a; font-size: 14px; cursor: default; }
.pc-sem { margin-left: 10px; color: #8a8a8a; font-size: 12px; font-weight: 400; }

.pc-gen { border: 2px solid #000; padding: 32px 24px; margin: 24px 0; text-align: center; }
.pc-gen-title { font-size: 15px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin: 0 0 12px; }
.pc-gen-text { margin: 0; color: #555; }
.pc-gen-link { color: #000; font-weight: 700; }
.pc-gen-spin { width: 28px; height: 28px; margin: 0 auto 16px; border: 3px solid #d5d5d5; border-top-color: #000; border-radius: 50%; animation: pcspin 0.9s linear infinite; }
@keyframes pcspin { to { transform: rotate(360deg); } }
.pc-chips[hidden] { display: none; }
