/* The landing (landing.html) is a page of its own: its tokens and the demo copies of the app components live here,
   so app style changes never move the demo. */
:root {
  color-scheme: dark;
  --bg: #000;
  --text: #f5f5f5;
  --muted: #8e8e8e;
  --line: #ffffff12;
  --green: #78d6a5;
  --accent: #ffd166;
  --blue: #4b9fff;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --intro-ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { min-width: 320px; overflow-x: hidden; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
svg { display: block; }
[hidden] { display: none !important; }

/* Topbar: logo, plain links in the middle, a dark and a light pill, a hairline under it. */
.topbar { position: sticky; z-index: 20; top: 0; background: rgba(0, 0, 0, .82); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.topbar-inner { display: flex; align-items: center; gap: 40px; width: min(1232px, calc(100% - 48px)); height: 64px; margin: 0 auto; border-bottom: 1px solid var(--line); }
/* the «o» of the logo is the agent's egg face; it blinks now and then */
.logo { display: inline-flex; align-items: baseline; font-size: 24px; font-weight: 750; letter-spacing: -.06em; line-height: 1; }
.logo svg { flex: none; width: .6em; height: .64em; margin: 0 .02em 0 .03em; overflow: visible; translate: 0 .02em; }
.logo path { fill: var(--text); stroke: var(--text); stroke-width: 6; stroke-linejoin: round; }
.logo g { fill: var(--bg); transform-box: fill-box; transform-origin: center; animation: logo-blink 6s infinite; }
@keyframes logo-blink { 0%, 93%, 100% { transform: none; } 96% { transform: scaleY(.1); } }
.topbar-links { display: flex; gap: 26px; color: #d4d4d4; font-size: 14px; font-weight: 500; }
.topbar-links a { transition: color .15s ease; }
.topbar-links a:hover { color: #fff; }
.topbar-actions { display: flex; gap: 8px; margin-left: auto; }

.pill { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 500; white-space: nowrap; transition: background .18s ease, transform .18s ease; }
.pill:active { transform: scale(.98); }
.pill.is-dark { background: #1c1c1c; color: #f0f0f0; }
.pill.is-dark:hover { background: #262626; }
.pill.is-light { background: #f5f5f5; color: #0a0a0a; }
.pill.is-light:hover { background: #fff; }
.pill.is-large { min-height: 44px; padding: 0 24px; font-size: 16px; }
.spark { width: 15px; height: 15px; fill: currentColor; }
.cta-short { display: none; }

/* Hero: centered title with the face mark, lead, two buttons, then the app window. */
.hero { display: flex; flex-direction: column; align-items: center; width: min(1232px, calc(100% - 48px)); margin: 0 auto; padding: 84px 0 0; text-align: center; }

.hero-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 .22em; margin-top: 20px; font-size: clamp(44px, 4.2vw, 60px); font-weight: 580; line-height: 1.12; letter-spacing: -.045em; }

.hero-name { display: inline-flex; align-items: center; gap: .22em; }

.hero-lead { max-width: 672px; margin-top: 20px; color: var(--muted); font-size: 18px; line-height: 1.6; text-wrap: balance; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* the page opens like x.ai/bot: the title words stand up one after another,
   then the lead, the button and the window come out of a blur */
.hero-word { display: inline-block; animation: hero-word .65s var(--intro-ease) calc(.1s + var(--word) * .055s) backwards; }
.hero-lead { animation: hero-rise 1s var(--intro-ease) .5s backwards; }
.hero-cta { animation: hero-drop 1s var(--intro-ease) .65s backwards; }
.window { animation: hero-rise 1s var(--intro-ease) .8s backwards; }

/* the perspective sits in each word, since the face and «wokie» are nested one level deeper */
@keyframes hero-word { from { opacity: 0; transform: perspective(1200px) translateY(45%) rotateX(-40deg); } to { transform: perspective(1200px) translateY(0) rotateX(0); } }
@keyframes hero-rise { from { opacity: 0; filter: blur(12px); transform: translateY(10px); } }
@keyframes hero-drop { from { opacity: 0; filter: blur(12px); transform: translateY(-10px); } }

/* The app window: inbox on the left, the chat on the right; the list fades out at the bottom. */
.window { display: grid; grid-template-columns: 340px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); width: min(976px, 100%); height: 640px; margin-top: 64px; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #1a1a1a; text-align: left; box-shadow: 0 40px 120px -40px #ffffff0d; }

.window-side { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--line); background: #141414; }
.window-bar { display: flex; align-items: center; height: 52px; padding: 0 20px; flex: none; }
.lights { display: flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }

.window-side-body { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; min-height: 0; padding: 0 12px 0 10px; }

.rail { display: flex; flex-direction: column; gap: 4px; align-self: start; padding: 6px; border-radius: 20px; background: #222; }
.rail-item { display: grid; place-items: center; height: 44px; border-radius: 50%; color: #8a8a8a; }
.rail-item.is-active { background: #333; color: #ededed; }
.rail-item.is-quiet { color: #6c6c6c; }
.rail-item svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rail-divider { height: 1px; margin: 4px 6px; background: #ffffff0d; }

.inbox { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chips { display: flex; gap: 6px; padding-bottom: 14px; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 10px; border-radius: 999px; background: #232323; color: #aaa; font-size: 13.5px; font-weight: 570; }
.chip svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chip.is-selected { padding: 0 13px; background: #e9e9e9; color: #080808; }
.chip em { font-style: normal; font-variant-numeric: tabular-nums; }
.chip.is-selected em { margin-left: 2px; color: #555; }

.threads { display: flex; flex-direction: column; gap: 2px; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent); mask-image: linear-gradient(to bottom, #000 82%, transparent); }
.thread { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; width: 100%; padding: 13px 14px; border: 0; border-radius: 18px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background .15s ease; }
.thread:hover { background: #1e1e1e; }
.thread.is-active { background: #262626; }
.thread:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.thread-title { color: #ececec; font-size: 14.5px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.thread-date { color: #8a8a8a; font-size: 12.5px; line-height: 1.6; }
.thread-company { grid-column: 1 / -1; color: #929292; font-size: 12.5px; }
.thread-status { grid-column: 1 / -1; margin-top: 3px; color: #a3a3a3; font-size: 12.5px; font-weight: 620; transition: color .3s ease; }
.thread-status[data-tone="action"] { color: var(--accent); }
.thread-status[data-tone="bot"] { color: var(--blue); }
.thread-status[data-tone="invite"] { color: var(--green); }
.thread-status[data-tone="done"] { color: #d98b86; }
.thread.is-new { animation: thread-in .6s var(--ease) both; }
@keyframes thread-in { from { opacity: 0; translate: 0 -12px; } }

/* the app's working sweep, exactly vacancies.css .feed-working: a narrow light band runs over grey text */
@property --shimmer-position { syntax: "<percentage>"; inherits: false; initial-value: -20%; }
.shimmer { width: fit-content; max-width: 100%; padding-bottom: .08em; background: linear-gradient(100deg, #858585, #f5f5f5, #858585) var(--shimmer-position) 0 / 24% 100% no-repeat, linear-gradient(#858585, #858585); -webkit-background-clip: text; background-clip: text; color: transparent !important; animation: shimmer 2.6s linear infinite; }
@keyframes shimmer { 0% { --shimmer-position: -35%; } 100% { --shimmer-position: 135%; } }


/* The vacancy of app/pages/vacancies at about 75% of the app size: header, stage dock, then the stage. */
.window-chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; padding: 20px 22px 20px 24px; }
.detail-bar { display: none; }

/* entities/vacancy/index.js vacancyHeader */
.vacancy-heading { display: grid; flex: none; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.vacancy-heading > div { min-width: 0; }
.vacancy-heading h2 { font-size: 19px; font-weight: 640; line-height: 1.12; letter-spacing: -.03em; }
.vacancy-company { margin-top: 5px; color: #aaa; font-size: 14px; font-weight: 500; line-height: 1.35; }
.vacancy-attention { margin-top: 5px; color: #c7c7c7; font-size: 14px; font-weight: 540; line-height: 1.35; }
.vacancy-attention[data-tone="action"] { color: var(--accent); }
.vacancy-attention[data-tone="bot"] { color: var(--blue); }
.vacancy-attention[data-tone="invite"] { color: var(--green); }
.vacancy-attention[data-tone="done"] { color: #d98b86; }
.vacancy-link { padding-top: 4px; color: #929292; font-size: 13px; font-weight: 540; white-space: nowrap; }

/* entities/vacancy/stages.js and vacancies.css .stage-step: the white marker is the stage on screen */
.stages { display: flex; flex: none; flex-wrap: wrap; gap: 14px; margin: 18px 0 24px; }
.stage { position: relative; display: flex; flex: none; align-items: center; gap: 12px; padding: 4px 16px 4px 4px; border: 0; border-radius: 999px; background: #262626; color: #a3a3a3; font: inherit; text-align: left; cursor: pointer; transition: background .15s ease, color .15s ease; }
.stage:not(:disabled):hover { background: #2e2e2e; color: #fff; }
.stage:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.stage:disabled { cursor: default; }
.stage.is-locked { opacity: .35; }
.stage-marker { position: relative; display: grid; width: 34px; height: 34px; flex: none; place-items: center; border: 2px solid transparent; border-radius: 50%; background: #363636; color: #a3a3a3; font-size: 14px; font-weight: 680; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.stage.is-selected { color: #fff; }
.stage.is-selected .stage-marker { border-color: #fff; background: #fff; color: #080808; }
.stage.is-current:not(.is-selected), .stage.is-current:not(.is-selected) .stage-marker { color: #d7d7d7; }
.stage:disabled .stage-marker { border-color: #3a3a3a; background: transparent; }
.stage-marker svg { width: 46%; height: 46%; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.stage.is-rejected .stage-marker { border-color: rgba(217, 139, 134, .48); background: #363636; color: #d98b86; }
.stage.is-rejected.is-selected .stage-marker { border-color: #fff; background: #fff; color: #d98b86; }
.stage strong { font-size: 13px; font-weight: 620; }
.stage-attention { position: absolute; top: 0; right: -2px; width: 13px; height: 13px; border: 2px solid #262626; border-radius: 50%; background: var(--accent); }

.pane-slot { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.pane { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.pane.is-entering:not(.pane-dialogue) { animation: pane-in .35s var(--ease) both; }
@keyframes pane-in { from { opacity: 0; translate: 0 6px; } }
.pane-search, .pane-application { overflow-y: auto; padding-bottom: 8px; scrollbar-width: none; }
.pane-search::-webkit-scrollbar, .pane-application::-webkit-scrollbar { display: none; }

/* search: the verdict (vacancies.css .vacancy-assessment) and the vacancy (vacancy-details.css) */
.vacancy-assessment h2 { margin-top: 2px; font-size: 26px; font-weight: 590; line-height: 1.12; letter-spacing: -.035em; }
.vacancy-assessment p { max-width: 680px; margin-top: 10px; color: #b8b8b8; font-size: 16px; line-height: 1.5; }
.vacancy-assessment.is-new { animation: pane-in .45s var(--ease) both; }
.vacancy-match { display: grid; gap: 22px; max-width: 680px; margin-top: 28px; }
.vacancy-match-title { margin-bottom: 10px; color: #d0d0d0; font-size: 14px; font-weight: 600; }
.vacancy-skills { display: flex; flex-wrap: wrap; gap: 6px; }
.vacancy-skill { display: inline-flex; min-height: 30px; align-items: center; padding: 6px 12px; border-radius: 999px; background: #262626; color: #a0a0a0; font-size: 13px; font-weight: 520; }
.vacancy-description { border-radius: 18px; background: #232323; }
.vacancy-description summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; color: #d0d0d0; font-size: 14px; font-weight: 580; line-height: 1.4; list-style: none; cursor: pointer; }
.vacancy-description summary::-webkit-details-marker { display: none; }
.vacancy-description summary:hover { color: #fff; }
.vacancy-description summary:focus-visible { outline: 2px solid #fff; outline-offset: -2px; border-radius: inherit; }
.vacancy-description summary svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.vacancy-description[open] summary svg { transform: rotate(180deg); }
.vacancy-description-body { padding: 2px 16px 16px; color: #b3b3b3; font-size: 13px; line-height: 1.65; }
.vacancy-description-body p { margin-bottom: 10px; }
.vacancy-description-body h4 { margin: 18px 0 8px; color: #e0e0e0; font-size: inherit; font-weight: 600; line-height: 1.45; }
.vacancy-description-body ul { margin-bottom: 12px; padding-left: 20px; list-style: disc; }
.vacancy-description-body li { margin: 6px 0; padding-left: 3px; }
.vacancy-description-body li::marker { color: #777; }
.vacancy-description-body > :first-child { margin-top: 0; }
.vacancy-description-body > :last-child { margin-bottom: 0; }

/* application: the receipt of features/application/materials.js with application.css */
.application-receipt { display: grid; gap: 24px; align-content: start; }
.application-material-nav { display: inline-flex; justify-self: start; max-width: 100%; gap: 2px; padding: 4px; border-radius: 999px; background: #262626; }
.application-material-tab { min-height: 34px; padding: 0 15px; border: 0; border-radius: 999px; background: transparent; color: #999; font: inherit; font-size: 13.5px; font-weight: 600; line-height: 1.15; white-space: nowrap; cursor: pointer; transition: background .18s ease, color .18s ease; }
.application-material-tab:hover { color: #eee; }
.application-material-tab[aria-pressed="true"] { background: #3a3a3a; color: #fff; }
.application-material-tab:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.application-question-progress { display: grid; gap: 6px; margin-bottom: 18px; }
.application-question-position { display: flex; align-items: baseline; gap: 7px; color: #aaa; font-size: 13.5px; }
.application-question-position strong { color: #fff; font-size: 19px; font-weight: 600; }
.application-question-bars { display: grid; grid-template-columns: repeat(auto-fit, minmax(14px, 1fr)); gap: 7px; }
.application-question-bar { position: relative; height: 22px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.application-question-bar::before { content: ""; position: absolute; inset: 8px 0; border-radius: 999px; background: #363636; transition: background .3s ease; }
.application-question-bar.is-answered::before { background: rgba(255, 209, 102, .58); }
.application-question-bar:hover::before, .application-question-bar[aria-current="step"]::before { background: var(--accent); }
.application-question-bar:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.application-material { display: grid; gap: 18px; }
.pane.is-switching .application-material { animation: material-in .25s ease both; }
@keyframes material-in { from { opacity: 0; transform: translateY(5px); } }
.application-question h4 { max-width: 75%; font-size: 17px; font-weight: 550; line-height: 1.4; letter-spacing: -.015em; }
.application-letter h3 { color: #aaa; font-size: 13.5px; font-weight: 500; }
/* the answers read as the candidate's own messages; min-width keeps «Да» from being easy to miss */
.application-message { width: fit-content; min-width: 120px; max-width: 75%; margin-left: auto; padding: 13px 19px; border-radius: 22px 22px 7px 22px; background: #3a3a3a; color: #f0f0f0; animation: bubble-in .4s var(--ease) both; }
/* the letter bubble keeps its width so the streamed text does not stretch it word by word */
.application-letter .application-message { width: min(88%, 600px); max-width: none; }
.application-message p { min-height: 1.45em; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; }
.application-message.is-streaming p::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -.15em; background: var(--accent); animation: caret 1s steps(1) infinite; }
.token { animation: token-in .5s ease-out both; }
@keyframes token-in { from { opacity: 0; } }
.muted { color: #929292; font-size: 15px; }

/* dialogue: chat bubbles and the composer of conversation.css */
.pane-dialogue { margin-top: -8px; }
/* the chat scrolls; messages sit at the bottom while they are few */
.chat-messages { display: flex; flex: 1; flex-direction: column; gap: 11px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 16px 0 14px; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 48px); mask-image: linear-gradient(to bottom, transparent, #000 48px); }
.chat-bubble { flex: none; align-self: flex-start; max-width: min(78%, 520px); padding: 12px 16px 8px; border-radius: 21px 21px 21px 7px; background: #2a2a2a; color: #f1f1f1; animation: bubble-in .45s var(--ease) both; }
.chat-bubble.self { align-self: flex-end; border-radius: 21px 21px 7px 21px; background: #3a3a3a; color: #f0f0f0; }
.chat-bubble:not(.self) + .chat-bubble:not(.self) { margin-top: -5px; border-top-left-radius: 7px; }
.chat-bubble.self + .chat-bubble.self { margin-top: -5px; border-top-right-radius: 7px; }
.chat-bubble p { font-size: 14px; line-height: 1.45; white-space: pre-line; }
.chat-bubble small { display: block; margin-top: 4px; color: #8f8f8f; font-size: 11px; line-height: 1; text-align: right; }
.chat-bubble.self small { color: #a3a3a3; }
.chat-event { flex: none; align-self: center; max-width: min(86%, 460px); text-align: center; animation: bubble-in .45s var(--ease) both; }
.chat-event span { display: inline-block; padding: 5px 10px; border-radius: 13px; background: #262626; color: #a0a0a0; font-size: 11.5px; font-weight: 600; line-height: 1.35; }
.chat-event time { margin-left: 7px; color: #7a7a7a; font-weight: 500; white-space: nowrap; }
.chat-event.is-positive span { color: var(--green); }
.chat-messages::-webkit-scrollbar { display: none; }
.chat-messages > * { flex: none; }
.chat-messages > :first-child { margin-top: auto; }
.typing { display: flex; flex: none; gap: 4px; align-self: flex-start; padding: 15px 16px; border-radius: 21px 21px 21px 7px; background: #2a2a2a; animation: bubble-in .3s var(--ease) both; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #8a8a8a; animation: typing 1.1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bubble-in { from { opacity: 0; translate: 0 10px; } }
@keyframes typing { 0%, 60%, 100% { opacity: .35; translate: 0 0; } 30% { opacity: 1; translate: 0 -3px; } }

/* the composer stays at the bottom; while the agent writes, the AI sweep runs over it and the star turns */
.chat-composer { position: relative; isolation: isolate; display: flex; flex: none; align-items: flex-end; gap: 6px; overflow: hidden; padding: 6px; border-radius: 26px; background: #2a2a2a; }
.chat-composer::before { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(110deg, transparent 20%, rgba(255, 211, 105, .12) 48%, transparent 76%); transform: translateX(-100%); }
.chat-composer.is-rewriting::before { animation: ai-sweep .9s ease-in-out infinite; }
.composer-text { flex: 1; min-width: 0; min-height: 22px; margin: 12px 8px 12px 12px; color: #f0f0f0; font-size: 14px; line-height: 22px; overflow-wrap: anywhere; }
.composer-text:empty { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.composer-text:empty::before { content: attr(data-placeholder); color: #8a8a8a; }
.composer-text.is-typing::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -.15em; background: var(--accent); animation: caret 1s steps(1) infinite; }
.is-rewriting .composer-text { animation: ai-text-breathe .9s ease-in-out infinite; }
.chat-composer-actions { display: flex; flex: none; align-items: center; gap: 7px; }
.chat-ai { display: inline-flex; height: 40px; align-items: center; gap: 7px; padding: 0 14px 0 11px; border-radius: 999px; background: #383838; color: #aaa; font-size: 13.5px; font-weight: 600; line-height: 1; transition: color .2s ease; }
.chat-ai-mark { display: grid; width: 19px; height: 19px; flex: none; place-items: center; color: #ffd369; }
.chat-ai-mark svg { width: 100%; height: 100%; fill: currentColor; }
.is-rewriting .chat-ai { color: #ffd369; }
.is-rewriting .chat-ai-mark { animation: ai-star-turn .9s ease-in-out infinite; }
.chat-send { display: grid; width: 46px; height: 46px; flex: none; place-items: center; border-radius: 50%; background: #474747; color: #fff; transition: transform .15s ease, filter .15s ease; }
.chat-send svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chat-send.is-pressed { transform: scale(.92); filter: brightness(1.6); }
@keyframes ai-sweep { 20%, 80% { opacity: 1; } to { transform: translateX(100%); opacity: 1; } }
@keyframes ai-star-turn { 50% { transform: rotate(90deg) scale(.75); } to { transform: rotate(180deg); } }
@keyframes ai-text-breathe { 50% { opacity: .4; } }
@keyframes caret { 50% { opacity: 0; } }

/* Footer: the name, the offer and the data documents, the seller's details. */
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; width: min(1232px, calc(100% - 48px)); margin: 0 auto; padding: 32px 0 36px; border-top: 1px solid var(--line); color: #666; font-size: 12px; }
.footer > span { color: var(--text); font-size: 18px; font-weight: 700; letter-spacing: -.06em; }
.footer-docs { display: flex; flex-wrap: wrap; flex-basis: 100%; gap: 8px 20px; line-height: 1.45; }
.footer-docs a { color: #8a8a8a; transition: color .15s ease; }
.footer-docs a:hover { color: #d7d7d7; }

@media (max-width: 1100px) {
  .topbar-links { display: none; }
  .window { grid-template-columns: 340px minmax(0, 1fr); }
  .chip:nth-child(4), .chip:nth-child(3) { display: none; }
  .vacancy-assessment h2 { font-size: 29px; }
  .vacancy-assessment p { font-size: 17.5px; }
}

/* phone: the window keeps only the open vacancy */
@media (max-width: 760px) {
  .footer { width: calc(100% - 32px); padding-bottom: calc(28px + env(safe-area-inset-bottom)); font-size: 11px; }
  .topbar-inner { width: calc(100% - 32px); height: 64px; }
  .logo { font-size: 26px; }
  .topbar-actions .is-dark { display: none; }
  .pill { min-height: 40px; padding: 0 18px; font-size: 15px; }
  .cta-long { display: none; }
  .cta-short { display: inline; }

  .hero { width: calc(100% - 32px); padding-top: 24px; }
  .hero-title { margin-top: 20px; font-size: clamp(38px, 11vw, 48px); }
  .hero-lead { margin-top: 20px; font-size: 17px; }
  .hero-cta { flex-direction: column; align-self: stretch; margin-top: 32px; }
  .pill.is-large { min-height: 48px; font-size: 16px; }

  /* the window becomes a phone with the app inside: laid out at a phone's width and shown at 80%;
     «К списку» opens the feed, a vacancy in the feed opens it again */
  .window { position: relative; grid-template-columns: minmax(0, 1fr); width: 300px; height: 610px; margin-top: 56px; padding-top: 34px; border: 9px solid #262626; border-radius: 50px; background: #141414; box-shadow: 0 0 0 1px #3a3a3a, 0 40px 100px -30px #ffffff14; }
  .window::before { content: ""; position: absolute; z-index: 2; top: 9px; left: 50%; width: 84px; height: 24px; border-radius: 999px; background: #000; translate: -50% 0; }
  .window-side, .window.is-list .window-chat { display: none; }
  .window.is-list .window-side { display: flex; }
  .window-side, .window-chat { zoom: .8; }
  .window-side { border-right: 0; }
  .window-bar, .rail { display: none; }
  .window-side-body { display: flex; flex: 1; padding: 6px 14px 0; }
  .inbox { flex: 1; }
  .threads { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
  .threads::-webkit-scrollbar { display: none; }
  .window-chat { padding: 6px 14px 12px; }

  .detail-bar { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; }
  .detail-bar .back-pill, .detail-bar .vacancy-link { display: inline-flex; height: 40px; align-items: center; padding: 0 16px; border: 0; border-radius: 999px; background: #262626; color: #c6c6c6; font: inherit; font-size: 15px; font-weight: 600; white-space: nowrap; }
  .detail-bar .back-pill { gap: 2px; padding-left: 8px; cursor: pointer; }
  .detail-bar .back-pill svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
  .detail-bar .back-pill:active { background: #2e2e2e; color: #fff; }
  .vacancy-heading { grid-template-columns: minmax(0, 1fr); padding: 0 4px; }
  .vacancy-heading h2 { font-size: 19px; }
  .vacancy-company, .vacancy-attention { margin-top: 4px; font-size: 14px; }
  .vacancy-link { display: none; }
  .stages { flex-wrap: nowrap; gap: 5px; margin: 14px 0 18px; }
  .stage { gap: 6px; padding: 3px 10px 3px 3px; }
  .stage-marker { width: 32px; height: 32px; font-size: 13px; }
  .stage strong { font-size: 12.5px; }
  .pane-search, .pane-application { padding-inline: 4px; }
  .vacancy-assessment h2 { font-size: 25px; }
  .vacancy-assessment p { margin-top: 10px; font-size: 16px; }
  .vacancy-match { gap: 18px; margin-top: 22px; }
  .application-question h4 { max-width: none; font-size: 17px; }
  .application-message { max-width: 86%; }
  .application-letter .application-message { width: 94%; }
  .application-message p { font-size: 15px; }
  .chat-bubble { max-width: 86%; }
  .chat-bubble p { font-size: 15px; }
  .chat-ai { padding: 0 13px 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .logo g, .chat-bubble, .chat-event, .typing, .typing i, .thread.is-new, .pane, .vacancy-assessment.is-new, .application-message, .application-material, .token, .hero-word, .hero-lead, .hero-cta, .window { animation: none !important; }
  .vacancy-description summary svg { transition: none; }
  .shimmer { background: none; color: #c7c7c7 !important; animation: none; }
}
