:root {
  --page: #f7f8fa;
  --surface: #ffffff;
  --surface-soft: #f3f5f8;
  --text: #161b22;
  --text-strong: #0f172a;
  --muted: #667085;
  --line: #e6e9ef;
  --accent: #f26a00;
  --accent-strong: #9a3412;
  --accent-soft: #fff3e8;
  --green: #14715f;
  --green-soft: #dcfce7;
  --violet: #965eeb;
  --red: #b42318;
  --red-soft: #fef3f2;
  --focus: #c2410c;
  --shadow: 0 1px 2px rgba(16, 24, 40, .035);
  color: var(--text);
  background: var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--page); -webkit-font-smoothing: antialiased; }
body { min-width: 320px; min-height: 100dvh; margin: 0; background: var(--page); }
html[data-platform="max"] body { padding-bottom: env(safe-area-inset-bottom, 0px); }
button, input { font: inherit; }
button, label, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-underline-offset: 3px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; border-radius: 10px; background: var(--text); color: #fff; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.header-brand { display: inline-flex; min-height: 44px; text-decoration: none; }
.header-brand img { display: block; width: 132px; height: auto; object-fit: contain; }
.public-shell { max-width: 920px; margin: 0 auto; padding: max(20px, env(safe-area-inset-top)) 18px max(48px, env(safe-area-inset-bottom)); }
.public-hero { margin-bottom: 18px; }
.public-hero .page-title { margin: 0; color: var(--text-strong); font-size: clamp(32px, 4.4vw, 46px); font-weight: 750; line-height: .98; letter-spacing: 0; }
.public-hero > p:not(.page-title) { max-width: 610px; margin: 10px 0 0; color: var(--muted); font-size: 16px; line-height: 1.42; }
.step-indicator { display: flex; align-items: center; gap: 12px; }
.section-number { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #fff7ed; color: #c2410c; font-size: 16px; font-weight: 900; }


#app { width: 100%; margin: 0; padding: 0; }
#app:focus-visible { outline: 0; }
.layout { width: 100%; }
.layout-wide { display: block; width: 100%; margin: 0; }

.flow-card { width: 100%; margin: 0; overflow: visible; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.layout-wide .flow-card { max-width: none; margin: 0; }
.flow-card-bare { overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.journey-context { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: center; min-height: 82px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #fbfcfd; border-radius: 13px 13px 0 0; }
.journey-context img { display: block; width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.journey-context div { min-width: 0; }
.journey-context strong, .journey-context small, .journey-label { display: block; }
.journey-label { margin-bottom: 4px; color: var(--accent-strong); font-size: 12px; font-weight: 750; }
.journey-context strong { overflow: hidden; font-size: 15px; font-weight: 750; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.journey-context small { margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.journey-context-generic { display: none; }
.journey-check { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--green-soft); color: #18763a; font-size: 18px; font-weight: 800; }
.journey-context-generic strong { white-space: normal; }
.journey-context-generic small { white-space: normal; }
.intro-image { display: block; width: 100%; height: 240px; object-fit: cover; object-position: center 10%; border-radius: 13px 13px 0 0; }
.intro-content { padding: 28px; }
.intro-title { margin: 0; color: var(--text-strong); font-size: clamp(26px, 3.5vw, 36px); font-weight: 750; line-height: 1.15; text-wrap: balance; }
.intro-title:focus { outline: 0; }
.intro-pay { display: inline-block; margin: 18px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-strong); font-size: 18px; font-weight: 750; line-height: 1.4; }
.intro-conditions { margin: 24px 0 0; }
.intro-conditions > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.intro-conditions dt { color: var(--muted); font-size: 14px; }
.intro-conditions dd { margin: 0; color: var(--text); font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.intro-next { margin-top: 24px; }
.intro-next h2 { margin: 0; color: var(--text-strong); font-size: 16px; }
.intro-next p { margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

.flow-head { padding: 18px 18px 0; }
.flow-nav { display: flex; align-items: center; justify-content: space-between; min-height: 44px; gap: 12px; }
.back-button, .text-button { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; }
.back-button:hover, .text-button:hover { background: var(--surface-soft); }
.back-button svg { width: 22px; height: 22px; }
.step-copy { color: var(--muted); font-size: 13px; font-weight: 750; }
.progress { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 16px; }
.progress span { display: block; height: 4px; border-radius: 999px; background: #f1f3f6; }
.progress span.is-done { background: #fed7aa; }
.progress span.is-current { background: var(--accent); }
.flow-body { padding: 24px 18px 20px; }
.question-kicker { margin: 0 0 8px; color: var(--accent-strong); font-size: 13px; font-weight: 750; }
.question-title { max-width: 660px; margin: 0; color: var(--text-strong); font-size: 28px; font-weight: 750; line-height: 1.15; letter-spacing: 0; text-wrap: balance; }
.question-title:focus, .result-head h1:focus, .detail-summary h1:focus, .empty-state h1:focus { outline: 0; }
.question-help { max-width: 610px; margin: 10px 0 20px; color: var(--muted); font-size: 16px; line-height: 1.42; }

.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.option { position: relative; display: block; cursor: pointer; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option-content { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; height: 100%; padding: 12px 14px; border: 1px solid #d9dee7; border-radius: 10px; background: var(--surface); transition: border-color .15s ease, background .15s ease; }
.option:hover .option-content { border-color: #fdba74; background: #fffaf5; }
.option input:checked + .option-content { border-color: #f26a00; background: #fff7ed; }
.option input:focus-visible + .option-content { outline: 3px solid var(--focus); outline-offset: 3px; }
.option-title { display: block; font-size: 15px; font-weight: 750; line-height: 1.25; }
.option-note { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.3; }
.check-dot { display: grid; place-items: center; flex: 0 0 22px; width: 22px; height: 22px; border: 1.5px solid #c7c8cc; border-radius: 50%; color: transparent; font-size: 12px; font-weight: 900; }
.option input:checked + .option-content .check-dot { border-color: var(--accent-strong); background: var(--accent-strong); color: #fff; }

.field { display: grid; gap: 8px; margin-top: 21px; }
.field span { color: #303948; font-size: 14px; font-weight: 600; }
.input { width: 100%; min-height: 46px; padding: 11px 12px; border: 1px solid #d9dee7; border-radius: 10px; background: #fff; color: var(--text); font-size: 16px; transition: border-color .15s ease, box-shadow .15s ease; }
.input::placeholder { color: #7b8492; }
.input:focus { outline: 3px solid var(--accent-soft); outline-offset: 0; border-color: #ffb36b; }
.input[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.input-short { max-width: 260px; }
.field-error:empty { display: none; }
.field-error { min-height: 0; margin-top: 10px; color: var(--red); font-size: 13px; font-weight: 650; }
.address-field { position: relative; }
.field-help { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.suggestions { position: absolute; z-index: 8; top: calc(100% + 7px); right: 0; left: 0; max-height: 292px; overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 14px 36px rgba(18,18,20,.14); }
.suggestion { display: grid; gap: 4px; width: 100%; min-height: 54px; padding: 11px 12px; border: 0; border-radius: 10px; background: transparent; text-align: left; cursor: pointer; }
.suggestion:hover, .suggestion[aria-selected="true"] { background: var(--accent-soft); }
.suggestion span { font-size: 14px; font-weight: 700; line-height: 1.35; }
.suggestion small, .suggestion-empty { color: var(--muted); font-size: 12px; line-height: 1.35; }
.suggestion-empty { padding: 13px 12px; }
.suggestions-attribution { display: block; padding: 8px 12px 7px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; text-align: right; text-decoration: none; }

.actions { display: grid; gap: 10px; margin-top: 28px; }
.actions-continue { display: flex; justify-content: flex-end; }
.actions-continue .primary-button { width: auto; min-width: 170px; min-height: 46px; padding: 12px 22px; }
.actions-continue .primary-button > span:last-child { margin-left: 10px; font-size: 18px; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 46px; padding: 12px 22px; border-radius: 10px; font-size: 14px; font-weight: 700; line-height: 1.25; text-decoration: none; cursor: pointer; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.primary-button { border: 1px solid var(--text-strong); background: var(--text-strong); color: #fff; box-shadow: 0 8px 18px rgba(15, 23, 42, .12); }
.primary-button:hover { border-color: #273244; background: #273244; }
.primary-button:active { transform: translateY(1px); }
.primary-button:disabled { border-color: var(--text-strong); background: var(--text-strong); color: #fff; opacity: .55; box-shadow: none; cursor: not-allowed; transform: none; }
.primary-button > span:last-child:not(.button-status) { margin-left: auto; font-size: 21px; }
.secondary-button { border: 1px solid #fed7aa; background: #fff7ed; color: var(--accent-strong); }
.secondary-button:hover { border-color: #fdba74; background: #ffedd5; }
.button-status { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.button-status-accent { border-color: #fed7aa; border-top-color: var(--accent-strong); }
@keyframes spin { to { transform: rotate(360deg); } }

.summary { margin: 20px 0 0; overflow: hidden; border-top: 1px solid var(--line); }
.summary-row { display: grid; grid-template-columns: minmax(120px, .7fr) minmax(0, 1.3fr) 44px; gap: 16px; align-items: center; min-height: 64px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary-row dt { color: #667085; font-size: 14px; font-weight: 600; }
.summary-row dd { margin: 0; overflow-wrap: anywhere; color: var(--text); text-align: left; font-size: 15px; font-weight: 500; line-height: 1.35; }
.summary-edit { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: #667085; cursor: pointer; }
.summary-edit:hover { background: var(--surface-soft); color: var(--accent-strong); }
.summary-edit svg { width: 19px; height: 19px; }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; margin-top: 21px; cursor: pointer; }
.consent input { width: 24px; height: 24px; margin: 0; accent-color: var(--accent); }
.consent span { font-size: 13px; line-height: 1.45; }

.layout-results { width: min(100%, 1040px); margin-inline: auto; }
.result-head { padding: 4px 0 20px; }
.result-head h1 { margin: 0; color: var(--text-strong); font-size: 28px; font-weight: 750; line-height: 1.15; letter-spacing: 0; }
.result-head p { max-width: 630px; margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.vacancy-list { display: grid; gap: 12px; }
.vacancy-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); transition: border-color .15s ease, box-shadow .15s ease; }
.vacancy-card:hover { border-color: #fdba74; box-shadow: 0 2px 8px rgba(16,24,40,.05); }
.vacancy-open { display: grid; grid-template-columns: 230px minmax(0, 1fr); width: 100%; min-height: 200px; padding: 0; overflow: hidden; border: 0; background: #fff; text-align: left; cursor: pointer; }
.vacancy-image { width: 100%; height: 100%; min-height: 200px; object-fit: cover; }
.vacancy-content { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; padding: 22px 24px; }
.vacancy-card-head { display: flex; width: 100%; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-context { display: grid; min-width: 0; gap: 5px; }
.card-location { overflow: hidden; color: var(--muted); font-size: 12px; font-weight: 650; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.source-chip { width: fit-content; padding: 4px 7px; border-radius: 7px; background: var(--accent-soft); color: var(--accent-strong); font-size: 10px; font-weight: 800; }
.distance { flex: 0 0 auto; padding: 5px 8px; border-radius: 8px; background: var(--green-soft); color: #18763a; font-size: 11px; font-weight: 800; }
.card-title { margin-top: 12px; color: var(--text-strong); font-size: 22px; font-weight: 750; line-height: 1.2; letter-spacing: 0; }
.card-pay { margin-top: 7px; font-size: 18px; font-weight: 850; }
.card-description { display: -webkit-box; margin-top: 10px; overflow: hidden; color: #667085; font-size: 13px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.card-link { margin-top: auto; padding-top: 14px; color: var(--accent-strong); font-size: 13px; font-weight: 800; }

.pay { display: inline-flex; width: fit-content; padding: 7px 10px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-strong); font-size: 16px; font-weight: 800; }
.feature-list { display: flex; flex-wrap: wrap; gap: 7px; }
.feature { padding: 6px 9px; border-radius: 8px; background: var(--surface-soft); color: #475467; font-size: 12px; font-weight: 700; }
.layout-detail { width: min(100%, 1040px); margin-inline: auto; }
.detail-page { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.detail-toolbar { display: flex; align-items: center; justify-content: space-between; min-height: 68px; padding: 10px 22px; border-bottom: 1px solid var(--line); }
.detail-content { min-width: 0; }
.detail-overview { display: block; }
.detail-media { aspect-ratio: 16 / 7; min-height: 0; background: var(--surface-soft); }
.detail-image { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; object-position: center; }
.detail-summary { min-width: 0; padding: 30px; border-bottom: 1px solid var(--line); }
.detail-summary h1 { margin: 0 0 16px; color: var(--text-strong); font-size: 28px; font-weight: 750; line-height: 1.15; letter-spacing: 0; }
.detail-information { display: block; }
.detail-section { padding: 26px 30px; border-bottom: 1px solid var(--line); }
.detail-section h2 { margin: 0 0 9px; font-size: 16px; }
.detail-section p { margin: 0; color: #475467; font-size: 14px; line-height: 1.58; }
.detail-callout { padding: 15px; border: 1px solid #fed7aa; border-radius: 10px; background: #fff7ed; color: var(--accent-strong); font-size: 14px; font-weight: 600; line-height: 1.45; }
.detail-footer { display: grid; gap: 22px; padding: 26px 30px 30px; }
.detail-contact h2 { margin: 0; font-size: 16px; }
.detail-contact p { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.contact-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.contact-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 16px; border: 1px solid transparent; border-radius: 12px; font-size: 15px; font-weight: 800; text-decoration: none; transition: transform .14s ease, filter .14s ease; }
.contact-button:hover { filter: brightness(.95); }
.contact-button:active { transform: translateY(1px); }
.contact-button-max { border-color: #e7e2f8; background: #f3efff; color: #6750a4; }
.contact-button-telegram { border-color: #ccecfb; background: #e7f7ff; color: #008ccc; }
.detail-action { margin: 0; }

.empty-state { display: grid; place-items: center; min-height: 320px; padding: 38px 24px; text-align: center; }
.empty-state > div { width: min(100%, 450px); }
.state-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 19px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); font-size: 28px; font-weight: 850; }
.state-icon-wait { background: #fff7ed; color: var(--accent-strong); }
.empty-state h1 { margin: 0; color: var(--text-strong); font-size: 28px; font-weight: 750; line-height: 1.15; letter-spacing: 0; }
.empty-state p { margin: 12px auto 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.dialog-backdrop { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(13,13,15,.52); }
.dialog-open { overflow: hidden; }
.dialog { width: min(100%, 520px); padding: 27px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 24px 70px rgba(0,0,0,.2); }
.dialog h2 { margin: 0; color: var(--text-strong); font-size: 24px; letter-spacing: 0; }
.dialog p { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.site-footer { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 16px 28px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); color: #667085; font-size: 14px; line-height: 1.38; overflow-wrap: anywhere; }
.site-footer h2 { margin: 0 0 5px; color: #626a76; font-size: 14px; line-height: 1.25; }
.site-footer p { margin: 0; }
.site-footer a { color: #68717e; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.site-footer .footer-region { grid-column: 1 / -1; padding-top: 4px; }
.footer-policy { grid-column: 1 / -1; }
.consent a { color: #14715f; }


@media (max-width: 820px) {
  .site-header { margin-bottom: 28px; }
  .site-footer { grid-template-columns: 1fr; }
  .actions-continue .primary-button { width: 100%; }
  .flow-card { border-radius: 14px; }
  .journey-context { padding: 12px 20px; }
  .flow-head { padding: 18px 18px 0; }
  .flow-body { padding: 24px 18px 20px; }
  .question-title { font-size: 26px; }
  .vacancy-open { grid-template-columns: 170px minmax(0, 1fr); }
  .vacancy-content { padding: 17px; }
  .card-description { display: none; }
  .detail-page { border-radius: 14px; }
  .detail-overview { display: block; }
  .detail-media, .detail-image { height: auto; }
  .detail-media { aspect-ratio: auto; }
  .detail-summary { padding: 24px 20px; }
  .detail-information .detail-section { padding: 22px 20px; }
  .detail-footer { grid-template-columns: 1fr; padding: 20px; }
}

@media (max-width: 520px) {
  .intro-image { height: 180px; }
  .intro-content { padding: 22px 18px; }
  .intro-conditions > div { grid-template-columns: 1fr; gap: 5px; }
  .intro-pay { font-size: 17px; }
  .public-shell { padding-right: 18px; padding-left: 18px; }
  .flow-card { border-radius: 14px; }
  .journey-context { grid-template-columns: 48px minmax(0, 1fr); padding: 12px 18px; border-radius: 13px 13px 0 0; }
  .journey-context img { width: 48px; height: 48px; }
  .journey-context-generic { grid-template-columns: 38px minmax(0, 1fr); }
  .flow-head { padding: 18px 18px 0; }
  .flow-body { padding: 22px 18px; }
  .question-title { font-size: 24px; }
  .options { grid-template-columns: 1fr; gap: 8px; }
  .option-content { min-height: 58px; }
  .input-short { max-width: none; }
  .actions { margin-top: 24px; }
  .summary-row { grid-template-columns: minmax(0, 1fr) 44px; gap: 2px 10px; padding: 11px 0; }
  .summary-row dt, .summary-row dd { grid-column: 1; text-align: left; }
  .summary-row dt { font-size: 12px; }
  .summary-edit { grid-column: 2; grid-row: 1 / 3; }
  .result-head { padding: 4px 0 18px; }
  .result-head h1 { font-size: 28px; }
  .vacancy-list { gap: 12px; }
  .vacancy-card { border-radius: 15px; }
  .vacancy-open { grid-template-columns: 118px minmax(0, 1fr); min-height: 176px; }
  .vacancy-image { min-height: 176px; }
  .vacancy-content { padding: 13px; }
  .vacancy-card-head { display: block; }
  .card-location { display: block; max-width: 100%; }
  .distance { display: inline-flex; margin-top: 7px; }
  .card-title { margin-top: 9px; font-size: 18px; }
  .card-pay { margin-top: 5px; font-size: 15px; }
  .card-link { padding-top: 9px; font-size: 12px; }
  .layout-detail { margin-top: 0; }
  .detail-page { border-radius: 14px; }
  .detail-toolbar { padding-right: 16px; padding-left: 10px; }
  .detail-summary { padding: 22px 16px; }
  .detail-information .detail-section { padding: 22px 16px; }
  .detail-footer { padding: 22px 16px max(22px, env(safe-area-inset-bottom)); }
  .contact-actions { grid-template-columns: 1fr; }
  .detail-action { position: sticky; bottom: 0; margin: 24px -16px -22px; padding: 14px 16px max(18px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); }
  .dialog-backdrop { align-items: end; padding: 0; }
  .dialog { border-radius: 22px 22px 0 0; padding: 24px 18px max(24px, env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
