/* Pilot application page (/apply, /ru/apply). Tokens only (tokens.css), classes prefixed ap-. */
.ap-main { background: var(--page); color: var(--ink); min-height: 100vh; padding: 104px 0 80px; }
.ap-wrap.ap-embedded { padding: 0; }
.ap-embedded .ap-lead { margin-top: 0; }
.ap-wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--s-5); display: grid; grid-template-columns: 340px 1fr; gap: var(--s-6); align-items: start; }
.ap-aside h1 { font-size: 34px; line-height: 1.12; letter-spacing: -.02em; margin: var(--s-5) 0 var(--s-3); font-weight: 700; }
.ap-lead { color: var(--text-muted); margin: 0 0 var(--s-5); }
.ap-eyebrow { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); font-weight: 650; margin-top: var(--s-5); }
.ap-next { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-4); }
.ap-next li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.ap-n { width: 28px; height: 28px; border-radius: 50%; background: var(--sheet); border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: 13px; font-weight: 650; }
.ap-next b { display: block; }
.ap-next span:not(.ap-n) { color: var(--text-muted); font-size: 14px; }
.ap-card { background: var(--sheet); border-radius: var(--rs); box-shadow: var(--shadow-card); padding: var(--s-5) var(--s-6) var(--s-6); min-width: 0; }
.ap-card h2 { font-size: 24px; letter-spacing: -.01em; margin: 0 0 4px; font-weight: 700; outline: none; }
.ap-sub { color: var(--text-muted); margin: 0 0 var(--s-5); font-size: 15px; }
.ap-steps { display: flex; gap: 6px; margin: 0 0 var(--s-5); padding: 0; list-style: none; }
.ap-steps li { flex: 1; min-width: 0; }
.ap-steps button { all: unset; cursor: pointer; display: block; width: 100%; }
.ap-steps button:disabled { cursor: default; }
.ap-steps button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.ap-bar { height: 4px; border-radius: 4px; background: var(--line); margin-bottom: 8px; }
.ap-steps li.done .ap-bar, .ap-steps li.cur .ap-bar { background: var(--brand); }
.ap-lbl { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-steps li.cur .ap-lbl { color: var(--ink); font-weight: 650; }
.ap-steps li.done .ap-lbl::before { content: "✓ "; color: var(--brand); }
.ap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.ap-full { grid-column: 1 / -1; }
.ap-l, .ap-legend { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.ap-opt { font-weight: 400; color: var(--text-muted); }
.ap-req { color: var(--danger); }
.ap-card input[type=text], .ap-card input[type=email], .ap-card input[type=tel], .ap-card select, .ap-card textarea {
    width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--field); border: 1px solid transparent;
    border-radius: var(--rf); padding: 12px 14px; outline: none; transition: .12s;
}
.ap-card input:hover, .ap-card select:hover, .ap-card textarea:hover { background: var(--field-hover); }
.ap-card input:focus, .ap-card select:focus, .ap-card textarea:focus { border-color: var(--focus); background: var(--sheet); box-shadow: 0 0 0 3px var(--brand-soft); }
.ap-fld.err input, .ap-fld.err select, .ap-fld.err textarea { border-color: var(--danger); background: var(--sheet); }
.ap-msg { display: none; color: var(--danger-ink); font-size: 13px; margin-top: 6px; }
.ap-fld.err .ap-msg { display: block; }
.ap-hint { font-size: 13px; color: var(--text-muted); }
.ap-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.ap-seg label { cursor: pointer; position: relative; }
.ap-seg input { position: absolute; opacity: 0; pointer-events: none; }
.ap-seg span { display: block; padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: var(--rf); font-size: 15px; background: var(--sheet); transition: .12s; }
.ap-seg label:hover span { background: var(--field); }
.ap-seg input:checked + span { border-color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.ap-seg input:focus-visible + span { box-shadow: 0 0 0 3px var(--brand-soft); }
.ap-cards { display: grid; gap: 10px; }
.ap-cards label { cursor: pointer; display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--rf); background: var(--sheet); transition: .12s; }
.ap-cards label:hover { background: var(--field); }
.ap-cards label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.ap-cards input { margin: 3px 0 0; accent-color: var(--brand); width: 18px; height: 18px; }
.ap-cards b { display: block; font-size: 15px; }
.ap-cards small { color: var(--text-muted); font-size: 13px; }
.ap-fld.err .ap-cards label { border-color: var(--danger); }
.ap-actions { display: flex; justify-content: space-between; align-items: center; margin-top: var(--s-6); gap: 12px; }
.ap-btn { font: inherit; font-weight: 600; font-size: 16px; border-radius: var(--rb); padding: 13px 24px; cursor: pointer; border: 1px solid transparent; transition: .12s; }
.ap-primary { background: var(--btn); color: var(--on-btn); }
.ap-primary:hover { background: var(--btn-hover); }
.ap-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.ap-outline:hover { background: var(--field); }
.ap-btn:disabled { opacity: .4; cursor: not-allowed; }
.ap-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ap-rv { border: 1px solid var(--line); border-radius: var(--rf); margin-bottom: 12px; overflow: hidden; }
.ap-rv header { display: flex; justify-content: space-between; align-items: center; background: var(--surface-alt); padding: 10px 16px; font-weight: 650; font-size: 14px; }
.ap-rv header button { all: unset; cursor: pointer; color: var(--brand); font-size: 14px; font-weight: 500; }
.ap-rv header button:focus-visible { outline: 2px solid var(--focus); border-radius: 4px; }
.ap-rv dl { margin: 0; padding: 6px 16px; display: grid; grid-template-columns: minmax(150px, 210px) 1fr; gap: 0 16px; font-size: 14px; }
.ap-rv dt { color: var(--text-muted); padding: 7px 0; border-bottom: 1px solid var(--line); }
.ap-rv dd { margin: 0; padding: 7px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.ap-rv dt:nth-last-of-type(1), .ap-rv dd:last-of-type { border-bottom: 0; }
.ap-consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; margin-top: var(--s-4); font-size: 14px; cursor: pointer; }
.ap-consent input { width: 18px; height: 18px; accent-color: var(--brand); margin-top: 2px; }
.ap-consent a, .ap-alert a, .ap-card noscript a { color: var(--brand); }
.ap-hp { position: absolute; left: -9999px; }
.ap-alert { display: grid; gap: 4px; background: color-mix(in srgb, var(--danger) 8%, var(--sheet)); border: 1px solid color-mix(in srgb, var(--danger) 35%, var(--sheet)); color: var(--danger-ink); border-radius: var(--rf); padding: 12px 16px; margin-bottom: var(--s-4); font-size: 14px; }
.ap-ok { text-align: center; padding: var(--s-5) 0; }
.ap-tick { width: 56px; height: 56px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin: 0 auto var(--s-4); font-size: 28px; }
.ap-code { display: inline-block; font-family: var(--font-mono); font-size: 22px; letter-spacing: .04em; background: var(--field); border-radius: var(--rf); padding: 10px 18px; margin: var(--s-3) 0; user-select: all; }
.ap-ok ol { text-align: left; max-width: 440px; margin: var(--s-5) auto 0; padding-left: 20px; color: var(--text-muted); }
.ap-ok ol b { color: var(--ink); }
@media (max-width: 900px) {
    .ap-main { padding-top: 88px; }
    .ap-wrap { grid-template-columns: 1fr; gap: var(--s-4); }
    .ap-aside h1 { font-size: 28px; }
    .ap-next { display: none; }
    .ap-lead { margin-bottom: 0; }
    .ap-card { padding: var(--s-4) var(--s-4) var(--s-5); }
    .ap-grid { grid-template-columns: 1fr; }
    .ap-steps { margin-bottom: 44px; position: relative; }
    .ap-steps .ap-lbl { display: none; }
    .ap-steps li.cur .ap-lbl { display: block; position: absolute; margin-top: 12px; }
    .ap-rv dl { grid-template-columns: 1fr; }
    .ap-rv dt { border: 0; padding-bottom: 0; }
}
