/* SKOLTS careers: application form
   Layout: blue post band (what you are applying for), then one column of
   numbered sections on white cards, ending in consent and a full-width send. */

@font-face { font-family: "Archivo"; src: url("fonts/archivo-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --primary: #003380; --primary-hover: #00449f; --on-primary: #ffffff;
  --ink: #0e1a2b; --muted: #4a586b; --bg: #f6f8fb; --surface: #ffffff; --line: #d9e0ea;
  --field: #ffffff; --field-line: #8593a6;
  --link: #00449f; --error: #b42318; --error-bg: #fdf0ee; --success: #0a7a2f;
  --warn-bg: #fff6e0; --warn-line: #b54708; --focus: #b54708;
  --band: #003380; --band-ink: #ffffff; --band-muted: #c7d4ec; --plate: #f7c600;
  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #2f6bd0; --primary-hover: #4a82e0; --on-primary: #ffffff;
    --ink: #e8eef7; --muted: #a8b6c9; --bg: #0b1220; --surface: #121b2d; --line: #2a3a55;
    --field: #0e1626; --field-line: #6b7d97;
    --link: #8db4ff; --error: #ff8f84; --error-bg: #2a1517; --success: #4fc27a;
    --warn-bg: #2a2111; --warn-line: #f0b44c; --focus: #f0b44c;
    --band: #0b2a5e; --band-ink: #ffffff; --band-muted: #b9c9e6;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.55 var(--body); }
.wrap { max-width: 760px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: 6px; z-index: 20; }
.skip:focus { top: 8px; }
.js .nojs-only { display: none; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* header */
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.logo { display: inline-flex; align-items: center; min-height: 44px; }
.logo img { display: block; height: 36px; width: auto; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.lang a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 12px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .9rem; }
.lang a[aria-current="true"] { background: var(--primary); color: var(--on-primary); }
@media (max-width: 359px) { .lang a { padding: 0 9px; font-size: .85rem; } }

/* post band */
.post { background: var(--band); color: var(--band-ink); }
.post-in { padding-block: 18px 26px; display: grid; gap: 10px; }
.back { color: var(--band-muted); font-size: .92rem; justify-self: start; display: inline-flex; align-items: center; min-height: 44px; }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--plate); }
.post h1 { font-size: clamp(2rem, 7vw, 3rem); font-weight: 850; font-stretch: 78%; text-transform: uppercase; letter-spacing: -.005em; overflow-wrap: anywhere; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 2px 0 0; }
.post-meta div { display: flex; gap: 8px; align-items: baseline; }
.post-meta dt { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--band-muted); }
.post-meta dd { margin: 0; font-weight: 600; font-size: 1.05rem; }
.req { margin-top: 6px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.28); border-left: 4px solid var(--plate); border-radius: 8px; padding: 10px 12px; font-weight: 600; }
.req-tag { display: inline-block; margin-right: 6px; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--plate); }

/* layout */
.layout { padding-block: 20px 48px; display: grid; gap: 16px; }
.apply { display: grid; gap: 16px; counter-reset: sec; }
.intro { display: grid; gap: 6px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.intro:focus { outline: none; }
.nothing strong { color: var(--ink); }
.time { color: var(--muted); font-size: .92rem; }

.sec { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px 16px 22px; display: grid; gap: 18px; min-width: 0; }
@media (min-width: 600px) { .sec { padding: 24px 24px 26px; } }
.sec > h2 { font-size: 1.4rem; font-weight: 800; font-stretch: 88%; display: flex; gap: 10px; align-items: baseline; }
.sec:not(.sec-send):not(.verify) { counter-increment: sec; }
.sec:not(.sec-send):not(.verify) > h2::before { content: counter(sec); flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font: 600 .9rem var(--body); transform: translateY(-2px); }
.lead { color: var(--muted); }

.field { display: grid; gap: 6px; align-content: start; min-width: 0; margin: 0; padding: 0; border: 0; }
fieldset.field > legend { padding: 0; margin-bottom: 6px; }
.row2 { display: grid; gap: 18px; }
@media (min-width: 600px) { .row2 { grid-template-columns: 1fr 1fr; } .row2-wide { grid-template-columns: 1fr 9rem; } }
/* Line up side-by-side inputs even when only one label has a hint:
   each field's label / input / extras / error share the row's tracks. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 600px) {
    .row2 { grid-template-rows: repeat(4, auto); row-gap: 6px; column-gap: 18px; }
    .row2 > .field { grid-row: span 4; grid-template-rows: subgrid; }
  }
}
label, .lbl { font-weight: 600; display: block; }
.check { font-weight: 400; }
.opt { font-weight: 400; color: var(--muted); }
.hint { display: block; margin-top: 2px; font-weight: 400; color: var(--muted); font-size: .9rem; }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  width: 100%; min-height: 48px; font: 400 1rem var(--body); color: var(--ink); background: var(--field);
  border: 1.5px solid var(--field-line); border-radius: 8px; padding: 10px 12px; }
textarea { resize: vertical; line-height: 1.5; }
#f-letter { min-height: 200px; }
select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px; background-size: 6px 6px; background-repeat: no-repeat; text-overflow: ellipsis; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
::placeholder { color: var(--muted); opacity: .8; }
.err { color: var(--error); font-weight: 600; font-size: .95rem; display: flex; gap: 6px; }
.err::before { content: "!"; flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--error); color: var(--surface); font-size: .8rem; font-weight: 700; }
.note { font-size: .95rem; padding: 10px 12px; border-radius: 8px; background: var(--warn-bg); border-left: 4px solid var(--warn-line); color: var(--ink); }

.my { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 8px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 400; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--primary); }
.check-card { align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--field); }
.check-card input { margin-top: 2px; }
.check-card:has(input:checked) { border-color: var(--primary); }
.choices { display: grid; gap: 8px; }
@media (min-width: 480px) { .choices { grid-template-columns: 1fr 1fr; } }
.start-date { display: grid; gap: 6px; margin-top: 6px; }
.consent span { line-height: 1.5; }

/* repeating groups */
.jobs, .lics { display: grid; gap: 14px; }
.job { border: 1px solid var(--line); border-radius: 10px; padding: 14px 14px 10px; margin: 0; display: grid; gap: 14px; min-width: 0; }
.job legend { font-family: var(--display); font-weight: 800; font-stretch: 90%; font-size: 1.05rem; padding: 0 6px; }
.lic { display: grid; gap: 12px; }
.lic + .lic { border-top: 1px dashed var(--line); padding-top: 14px; }
.certs { display: grid; gap: 8px; margin-top: 4px; }
.cert { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.btn-x { display: none; }
.js .btn-x { display: inline-grid; place-items: center; width: 48px; min-height: 48px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); font-size: 1.4rem; cursor: pointer; }
.js .cert:only-child .btn-x, .js .cert.solo .btn-x { visibility: hidden; }

/* buttons */
.btn, .btn-sec, .btn-link { font: 600 1rem var(--body); cursor: pointer; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 8px; border: 0; background: var(--primary); color: var(--on-primary); text-decoration: none; }
.btn:hover { background: var(--primary-hover); }
.btn-sec { justify-self: start; min-height: 44px; padding: 0 16px; border-radius: 8px; border: 1.5px solid var(--primary); background: transparent; color: var(--link); }
.btn-link { justify-self: start; min-height: 44px; padding: 0 2px; border: 0; background: none; color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.remove { color: var(--muted); }
.js .remove { display: inline-flex; align-items: center; }
.remove { display: none; }
.btn-send { width: 100%; min-height: 56px; font-size: 1.1rem; }
.btn-send[disabled] { cursor: progress; opacity: .85; }
.spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; }
.sending .spin { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* alerts and end states */
.alert { display: grid; gap: 10px; padding: 14px 16px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--primary); }
.alert:focus { outline: none; }
.alert-err { border-left-color: var(--error); background: var(--error-bg); }
.alert-err p { font-weight: 600; }
.alert .btn { justify-self: start; }
.closed, .done { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 26px 20px; display: grid; gap: 14px; }
.closed h2, .done h2 { font-size: 1.6rem; font-weight: 800; font-stretch: 88%; }
.closed .btn, .done .btn { justify-self: start; }
.done:focus { outline: none; }
.done-mark { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--success); color: #fff; font-size: 1.7rem; font-weight: 700; }
.ref { font: 600 clamp(1.5rem, 7vw, 2.2rem)/1.2 var(--body); letter-spacing: .06em; font-variant-numeric: tabular-nums; padding: 14px 16px; border: 2px dashed var(--line); border-radius: 10px; background: var(--bg); user-select: all; -webkit-user-select: all; overflow-wrap: anywhere; }
.copied { color: var(--success); font-weight: 600; }
.done h3 { font-size: 1.15rem; margin-top: 6px; }
.next { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.count { font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.count.ok { color: var(--success); }

.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.foot .wrap { padding-block: 20px 28px; }

@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2s; } * { scroll-behavior: auto !important; } }

/* email confirmation gate */
.verify { border: 2px solid var(--primary); }
.verify[data-state="done"] { border: 1px solid var(--line); padding-block: 16px; gap: 10px; }
.verify h2 .key { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font: 600 .95rem var(--body); transform: translateY(-2px); }
.verify[data-state="done"] h2 .key { background: var(--success); }
.v-step { display: grid; gap: 14px; }
.inline { display: flex; flex-wrap: wrap; gap: 8px; }
.inline input { flex: 1 1 220px; min-width: 0; }
.inline .btn { flex: 0 0 auto; }
@media (max-width: 479px) { .inline .btn { flex: 1 1 100%; } }
input.code { font-size: 1.35rem; letter-spacing: .35em; font-variant-numeric: tabular-nums; max-width: 14rem; }
.inline input.code { flex: 0 1 14rem; }
.v-actions { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.v-actions .btn-link[disabled] { color: var(--muted); text-decoration: none; cursor: default; }
.small { font-size: .9rem; color: var(--muted); }
.ok { display: flex; gap: 10px; align-items: center; font-weight: 600; overflow-wrap: anywhere; }
.ok .tick { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--success); color: #fff; font-size: .9rem; }
.btn .spin { margin-right: 2px; }
.btn.sending .spin { display: inline-block; }
.btn[disabled] { cursor: progress; opacity: .85; }
.gated { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 16px; }
.gated:disabled > .sec { opacity: .5; }
.locked { padding: 12px 16px; border-radius: 10px; background: var(--surface); border: 1px dashed var(--field-line); color: var(--muted); font-weight: 600; }

/* ---------- vacancies page (/careers) ---------- */
.wrap-wide { max-width: 1040px; }
.list-hero-in { padding-block: 34px 38px; display: grid; gap: 28px; align-items: end; }
@media (min-width: 860px) { .list-hero-in { grid-template-columns: 1.15fr .85fr; gap: 48px; } }
.list-hero-in > * { min-width: 0; }
.list-hero h1 { font-size: clamp(2.3rem, 7vw, 3.6rem); font-weight: 850; font-stretch: 76%; text-transform: uppercase; line-height: 1; margin-top: 8px; }
.hero-sub { color: var(--band-muted); font-size: 1.08rem; max-width: 52ch; margin-top: 14px; }
.open-count { margin-top: 18px; color: var(--band-muted); font-weight: 600; display: flex; gap: 10px; align-items: baseline; }
.open-count b { font: 800 2.2rem/1 var(--display); font-stretch: 80%; color: var(--plate); font-variant-numeric: tabular-nums; }
.route { list-style: none; margin: 0; padding: 16px 18px; background: rgba(0,0,0,.2); border: 1px solid rgba(255,255,255,.2); border-radius: 12px; counter-reset: r; display: grid; }
.route li { counter-increment: r; display: grid; grid-template-columns: 32px 1fr; column-gap: 8px; padding: 10px 0; border-bottom: 1px dashed rgba(255,255,255,.22); }
.route li:last-child { border-bottom: 0; }
.route li::before { content: counter(r); grid-row: span 2; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--plate); color: #111; font-weight: 600; font-size: .82rem; margin-top: 1px; }
.route b { color: #fff; }
.route span { color: var(--band-muted); font-size: .92rem; }

.list-body { padding-block: 28px 56px; }
#vacancies { display: grid; gap: 16px; }
#vacancies > h2 { font-size: 1.6rem; font-weight: 800; font-stretch: 88%; }
.zones { display: flex; flex-wrap: wrap; gap: 8px; }
.zchip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.zchip[aria-current="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.zchip .n { margin-left: 8px; font-size: .8rem; font-weight: 600; opacity: .8; font-variant-numeric: tabular-nums; }
.vacs { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 860px) { .vacs { grid-template-columns: 1fr 1fr; } }
.vac { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 18px 20px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.vac:target { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
.vac-head { display: grid; gap: 6px; }
.vac h3 { font-size: 1.35rem; font-weight: 800; font-stretch: 88%; }
.vac h3 a { color: var(--ink); text-decoration: none; }
.vac h3 a:hover { text-decoration: underline; }
.vac-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; color: var(--muted); font-weight: 600; }
.chip { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: .82rem; font-weight: 600; }
.chip-req { background: var(--warn-bg); color: var(--ink); border: 1px solid var(--warn-line); }
.vac-closes { font-size: .92rem; color: var(--muted); }
.vac-closes time { color: var(--ink); font-weight: 600; }
.vac-closes.soon time { color: var(--warn-line); }
.lbl-sm { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.vac-sum { color: var(--ink); }
.vac-more { border-top: 1px solid var(--line); padding-top: 4px; }
.vac-more summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 8px; color: var(--link); font-weight: 600; list-style: none; }
.vac-more summary::-webkit-details-marker { display: none; }
.vac-more summary::before { content: "+"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid currentColor; font-size: .95rem; line-height: 1; }
.vac-more[open] summary::before { content: "−"; }
.vac-cols { display: grid; gap: 14px; padding: 4px 0 6px; }
.vac-cols h4 { margin: 0 0 4px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.vac-cols ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.vac-apply { justify-self: start; }
@media (max-width: 479px) { .vac-apply { justify-self: stretch; } }
.empty { padding: 20px; border: 1.5px dashed var(--line); border-radius: 12px; color: var(--muted); background: var(--surface); }
.foot-in { display: grid; gap: 6px; }
@media (min-width: 860px) { .vac { grid-template-rows: auto auto 1fr auto; } .vac-more { align-self: start; } }
