/* The careers page (spec R16). Copied from the prototype «18 - Karyera sahifasi» (index.html);
   additions for the server version are at the end. */
@font-face { font-family: Inter; font-weight: 400; src: url("fonts/Inter-Regular.ttf"); font-display: swap; }
@font-face { font-family: Inter; font-weight: 500; src: url("fonts/Inter-Medium.ttf"); font-display: swap; }
@font-face { font-family: Inter; font-weight: 600; src: url("fonts/Inter-SemiBold.ttf"); font-display: swap; }
@font-face { font-family: Inter; font-weight: 700; src: url("fonts/Inter-Bold.ttf"); font-display: swap; }

/* tokens = prototype/modul-1/src/index.css (desktop AppColors) */
:root {
  --navy: #1b2e52; --navy-soft: #e9eef6;
  --gold: #cda864; --gold-dark: #b8914c; --gold-deep: #7a5c26; --gold-soft: #f3e8d2; --gold-pale: #fdfaf3;
  --surface: #f4f6f9; --card: #fff; --line: #e3e7ee; --line-soft: #eef1f5; --fill: #edf0f4;
  --ink: #172033; --muted: #667085; --faint: #98a2b3;
  --danger: #c83b4d; --danger-soft: #fff0f1; --success: #1d7f55; --success-soft: #e7f5ee;
  --shadow-card: 0 1px 2px rgb(17 32 57 / .06); --shadow-lift: 0 8px 20px rgb(17 32 57 / .1);
  --r: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 15px/1.5 Inter, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--surface); }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* header */
.top { background: var(--navy); color: #fff; }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.brand b { font-weight: 700; letter-spacing: .06em; font-size: 14px; }
.brand span { display: block; color: var(--gold); font-size: 12px; font-weight: 500; letter-spacing: .02em; }
.lang { margin-left: auto; display: flex; background: rgb(255 255 255 / .08); border-radius: 8px; padding: 3px; }
.lang a { padding: 4px 10px; border-radius: 6px; font-size: 13px; font-weight: 600; text-decoration: none; color: rgb(255 255 255 / .7); }
.lang a[aria-current] { background: #fff; color: var(--navy); }

/* hero */
.hero { background: var(--navy); color: #fff; padding: 36px 0 76px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -60px; bottom: -40px; width: 360px; height: 220px;
  background: var(--hero-mark, none) center / contain no-repeat; opacity: .08; pointer-events: none; }
.hero h1 { font-size: clamp(26px, 4vw, 38px); line-height: 1.15; margin: 0 0 10px; font-weight: 700; max-width: 640px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { margin: 0; color: rgb(255 255 255 / .72); max-width: 560px; }
.stats { display: flex; gap: 28px; margin-top: 22px; flex-wrap: wrap; }
.stats div { font-size: 13px; color: rgb(255 255 255 / .6); }
.stats b { display: block; font-size: 22px; color: #fff; font-weight: 700; }

/* filters */
.filters { margin-top: -40px; position: relative; z-index: 1; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow-lift);
  padding: 12px; display: grid; grid-template-columns: 1fr 220px 200px auto; gap: 10px; }
.field { position: relative; }
.field svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.input, select.input { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
.field .input { padding-left: 38px; }
select.input { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23667085' stroke-width='2'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E") right 12px center no-repeat; padding-right: 32px; }
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
textarea.input { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; }

/* list */
.list-head { display: flex; align-items: baseline; justify-content: space-between; margin: 28px 0 12px; }
.list-head h2 { font-size: 18px; margin: 0; }
.list-head span { color: var(--muted); font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; padding-bottom: 48px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; text-decoration: none; display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--shadow-card); transition: transform .15s, box-shadow .15s, border-color .15s; animation: rise .3s ease-out both; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: var(--gold-soft); }
.card:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.card .dept { font-size: 12px; font-weight: 600; color: var(--gold-deep); text-transform: uppercase; letter-spacing: .05em; }
.card h3 { margin: 0; font-size: 17px; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--faint); }
.card .go { color: var(--navy); font-weight: 600; display: flex; align-items: center; gap: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; font-weight: 500; padding: 3px 9px; border-radius: 999px; background: var(--fill); color: var(--ink); }
.chip.gold { background: var(--gold-soft); color: var(--gold-deep); }
.chip.navy { background: var(--navy-soft); color: var(--navy); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.empty { background: var(--card); border: 1px dashed var(--line); border-radius: var(--r); padding: 40px 20px; text-align: center; color: var(--muted); margin-bottom: 48px; }
.empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }

/* detail */
.back { display: inline-flex; align-items: center; gap: 6px; color: rgb(255 255 255 / .75); text-decoration: none; font-size: 14px; margin-bottom: 14px; }
.back:hover { color: #fff; }
.hero.detail { padding-bottom: 64px; }
.hero .chips { margin-top: 14px; }
.hero .chip { background: rgb(255 255 255 / .1); color: #fff; }
.hero .chip.gold { background: var(--gold); color: var(--navy); }
.layout { display: grid; grid-template-columns: 1fr 380px; gap: 20px; margin-top: -40px; position: relative; z-index: 1; padding-bottom: 56px; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-card); }
.about { padding: 8px 24px; }
.sec { padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.sec:last-child { border-bottom: 0; }
.sec h2 { font-size: 15px; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.sec h2::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--gold); }
.sec p, .sec ul { margin: 0; color: #344054; }
.sec ul { padding-left: 18px; }
.sec li + li { margin-top: 4px; }
.req { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; }
.req dt { color: var(--muted); font-size: 14px; }
.req dd { margin: 0; }

/* form */
.apply { position: sticky; top: 16px; padding: 22px; }
.apply h2 { margin: 0 0 4px; font-size: 18px; }
.apply > p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.f { margin-bottom: 14px; }
.f label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.f label i { color: var(--danger); font-style: normal; }
.f small { display: block; font-size: 12px; color: var(--faint); margin-top: 4px; }
.f .err { color: var(--danger); font-size: 12px; margin-top: 4px; display: none; }
.f.bad .input, .f.bad .drop { border-color: var(--danger); }
.f.bad .err { display: block; }
.phone { display: flex; }
.phone span { display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--line); border-right: 0; border-radius: 10px 0 0 10px; background: var(--surface); color: var(--muted); font-weight: 500; }
.phone .input { border-radius: 0 10px 10px 0; }
.drop { border: 1.5px dashed var(--line); border-radius: 10px; padding: 16px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; display: block; }
.drop:hover, .drop.over { border-color: var(--gold); background: var(--gold-pale); }
.drop b { color: var(--navy); }
.drop small { margin-top: 2px; }
.file { display: none; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.file.on { display: flex; }
.file .ic { width: 34px; height: 34px; border-radius: 8px; background: var(--gold-soft); color: var(--gold-deep); display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; }
.file div { min-width: 0; flex: 1; }
.file b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.file small { color: var(--faint); font-size: 12px; }
.file button { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 4px; border-radius: 6px; }
.file button:hover { background: var(--fill); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #344054; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--navy); flex: none; }
.consent a { color: var(--navy); }
.ak-more { margin: 6px 0 0 28px; font-size: 12px; color: #475467; }
.ak-more summary { cursor: pointer; color: var(--navy); }
.ak-more p { margin: 4px 0; }
.hp { position: absolute; left: -9999px; }
.btn { width: 100%; height: 48px; border: 0; border-radius: 10px; background: var(--navy); color: #fff; font-weight: 600; font-size: 15px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px; transition: background .15s, transform .05s; }
.btn:hover { background: #142340; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn .spin { width: 16px; height: 16px; border: 2px solid rgb(255 255 255 / .35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: none; }
.btn[disabled] .spin { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.note { font-size: 12px; color: var(--faint); text-align: center; margin: 10px 0 0; }

/* success / not found */
.done { max-width: 560px; margin: -40px auto 56px; position: relative; z-index: 1; padding: 36px 28px; text-align: center; }
.done .ok { width: 64px; height: 64px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: grid; place-items: center; margin: 0 auto 16px; }
.done h2 { margin: 0 0 8px; font-size: 22px; }
.done p { margin: 0 auto; color: var(--muted); max-width: 420px; }
.done .steps { text-align: left; margin: 24px 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.done .steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.done .steps span { width: 24px; height: 24px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-deep); font-weight: 700; font-size: 12px; display: grid; place-items: center; flex: none; }
.link-btn { display: inline-flex; height: 44px; align-items: center; padding: 0 18px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; color: var(--navy); }
.link-btn:hover { background: var(--surface); }

footer { border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; padding: 20px 0; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .find { grid-column: 1 / -1; }
  .filters .field { grid-column: 1 / -1; }
  .layout { grid-template-columns: 1fr; }
  .apply { position: static; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .filters { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .about { padding: 4px 16px; }
  .apply { padding: 18px 16px; }
  .req { grid-template-columns: 1fr; gap: 2px; }
  .req dd { margin-bottom: 8px; }
  .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---- server version additions ---- */
.brand .mono { width: 34px; height: 34px; border-radius: 8px; background: var(--gold); color: var(--navy); display: grid; place-items: center; font-weight: 700; font-size: 16px; }
.find { height: 44px; border: 0; border-radius: 10px; background: var(--navy); color: #fff; font-weight: 600; padding: 0 18px; cursor: pointer; }
.find:hover { background: #142340; }
.js .find { display: none; }
@media (max-width: 860px) { .js .filters .field { grid-column: 1 / -1; } }
.pager { display: flex; justify-content: center; gap: 10px; padding-bottom: 48px; margin-top: -24px; }
.alert { background: var(--danger-soft); color: var(--danger); border-radius: 10px; padding: 10px 12px; font-size: 13px; margin: 0 0 14px; }
.f .hint { color: var(--gold-deep); font-size: 12px; margin-top: 4px; }
.drop { position: relative; }
.drop input { display: block; margin: 8px auto 0; max-width: 100%; font-size: 13px; }
.js .drop input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.drop:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }

/* ---- R26: «Rezyume qoldiring» and the QR poster (prototype «Karyera sahifasi» #/cv, #/qr) ---- */
.hero-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; height: 44px; padding: 0 18px; border-radius: 10px; background: var(--gold); color: var(--navy); font-weight: 600; text-decoration: none; }
.hero-cta:hover { background: var(--gold-dark); }
.cta { display: flex; align-items: center; gap: 20px; background: var(--gold-pale); border: 1px solid var(--gold-soft); border-radius: var(--r); padding: 22px 24px; margin-bottom: 48px; }
.cta .ic { width: 48px; height: 48px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-deep); display: grid; place-items: center; flex: none; }
.cta div { flex: 1; }
.cta b { display: block; font-size: 16px; margin-bottom: 2px; }
.cta span { color: var(--muted); font-size: 14px; }
.cta a { flex: none; height: 44px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 10px; background: var(--navy); color: #fff; font-weight: 600; text-decoration: none; }
.cta a:hover { background: #142340; }
.cta.big { flex-direction: column; text-align: center; padding: 36px 24px; }
.how { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.how li { display: flex; gap: 12px; color: #344054; }
.how span { width: 26px; height: 26px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-deep); font-weight: 700; font-size: 13px; display: grid; place-items: center; flex: none; }
.sec .more { color: var(--navy); font-weight: 600; }
@media (max-width: 860px) {
  .cta { flex-direction: column; text-align: center; }
  .apply.first { order: -1; } /* from a QR on a phone the form comes before the explanation */
}

/* QR poster (A4, printed by HR) */
.poster-wrap { padding: 32px 0 56px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.poster { width: 420px; max-width: 100%; aspect-ratio: 210 / 297; background: var(--navy); color: #fff; border-radius: 6px; box-shadow: var(--shadow-lift);
  padding: 36px 32px; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; overflow: hidden; }
.poster img.mark { width: 56px; }
.poster .mono { width: 56px; height: 56px; border-radius: 12px; background: var(--gold); color: var(--navy); display: grid; place-items: center; font-weight: 700; font-size: 26px; }
.poster .co { font-size: 12px; font-weight: 700; letter-spacing: .12em; margin-top: 8px; }
.poster h1 { font-size: 30px; line-height: 1.15; margin: 24px 0 8px; }
.poster h1 em { font-style: normal; color: var(--gold); }
.poster p { margin: 0; color: rgb(255 255 255 / .72); font-size: 14px; }
.poster .qr { background: #fff; border-radius: 14px; padding: 14px; margin: 26px 0 14px; width: 190px; height: 190px; }
.poster .qr svg { width: 100%; height: 100%; display: block; }
.poster .scan { font-weight: 600; color: var(--gold); }
.poster .url { margin-top: auto; font-size: 12px; color: rgb(255 255 255 / .55); word-break: break-all; }
.print-btn { background: #fff; cursor: pointer; }
@media print {
  .top, footer, .print-btn { display: none !important; }
  body { background: #fff; }
  .poster-wrap { padding: 0; }
  .poster { width: 100vw; height: 100vh; border-radius: 0; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
