/* Styles adapted from provided reference (RU-only). */
:root {
  --bg: #070b17;
  --bg-2: #0b1020;
  --panel: rgba(255,255,255,0.05);
  --panel-2: rgba(255,255,255,0.07);
  --stroke: rgba(255,255,255,0.09);
  --stroke-soft: rgba(255,255,255,0.06);
  --text: #f8fafc;
  --muted: #97a3b6;
  --primary: #7c8cff;
  --primary-2: #9c6bff;
  --accent: #22c55e;
  --shadow: 0 24px 80px rgba(0,0,0,0.45);
  --container: 1240px;
  --radius: 28px;
  --link-soft: #cbd5e1;
  --dropdown-bg: #0f172a;
  --dropdown-hover: rgba(124,140,255,0.14);
  --dropdown-active: rgba(124,140,255,0.20);
  --dropdown-border: rgba(255,255,255,0.15);
  --card-bg: rgba(255,255,255,0.04);
  --modal-bg: linear-gradient(180deg, rgba(15,23,42,0.98), rgba(9,14,28,0.98));
  --salary-color: #fde68a;
}
html[data-theme="light"] {
  --bg: #f5f6fb;
  --bg-2: #ffffff;
  --panel: rgba(15,23,42,0.04);
  --panel-2: rgba(15,23,42,0.06);
  --stroke: rgba(15,23,42,0.14);
  --stroke-soft: rgba(15,23,42,0.10);
  --text: #0b1020;
  --muted: #344255;
  --shadow: 0 18px 50px rgba(15,23,42,0.14);
  --link-soft: #334155;
  --dropdown-bg: #ffffff;
  --dropdown-hover: rgba(99,102,241,0.10);
  --dropdown-active: rgba(99,102,241,0.16);
  --dropdown-border: rgba(15,23,42,0.16);
  --card-bg: #ffffff;
  --modal-bg: #ffffff;
  --salary-color: #059669;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(124,140,255,0.18), transparent 24%),
    radial-gradient(circle at 88% 16%, rgba(156,107,255,0.14), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(34,197,94,0.05), transparent 20%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
html[data-theme="light"] body {
  background:
    radial-gradient(circle at 12% 10%, rgba(124,140,255,0.10), transparent 28%),
    radial-gradient(circle at 88% 16%, rgba(156,107,255,0.08), transparent 26%),
    radial-gradient(circle at 50% 100%, rgba(34,197,94,0.04), transparent 24%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
a { text-decoration: none; color: inherit; }
button, input { font: inherit; }
.container { width: min(calc(100% - 40px), var(--container)); margin: 0 auto; }

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7,11,23,0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
html[data-theme="light"] .header {
  background: rgba(245,246,251,0.94);
  border-bottom-color: rgba(15,23,42,0.06);
}
.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 2px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}
.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 16px 40px rgba(124,140,255,0.28);
}
.header-actions { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.header-actions .btn { flex: 0 0 auto; }
.theme-toggle-wrapper {
  display: inline-flex; align-items:center; gap:10px;
  background: none; border:none; cursor:pointer; padding:4px;
}
.theme-toggle-track {
  position: relative; width:52px; height:28px; border-radius:999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  transition: background 0.3s ease;
}
html[data-theme="light"] .theme-toggle-track { background:#e2e8f0; border-color:#cbd5e1; }
.theme-toggle-knob {
  position:absolute; top:2px; left:2px; width:22px; height:22px; border-radius:50%;
  background:#1e293b; color:#fff; display:grid; place-items:center; font-size:12px;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
html[data-theme="light"] .theme-toggle-knob { transform: translateX(24px); background:#fff; color:#0f172a; }
.theme-toggle-label { font-size:13px; color: var(--muted); font-weight:600; width:58px; text-align:left; }

.btn {
  display:inline-flex; align-items:center; justify-content:center;
  min-height:50px; padding:0 20px; border-radius:16px;
  border:1px solid transparent; font-size:14px; font-weight:700;
  white-space:nowrap; transition:0.28s ease; cursor:pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-ghost {
  background: rgba(255,255,255,0.03);
  border-color: var(--stroke);
  color: var(--text);
}
html[data-theme="light"] .btn-ghost { background: rgba(15,23,42,0.03); border-color: rgba(15,23,42,0.08); }
.btn-ghost:hover { background: rgba(255,255,255,0.06); }
.btn-primary {
  color:#fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 18px 40px rgba(124,140,255,0.28);
}
.btn-primary:hover { box-shadow: 0 24px 52px rgba(124,140,255,0.34); }
.btn-small { min-height:46px; padding:0 18px; border-radius:14px; }

.hero-jobs { padding: 68px 0 32px; }
.eyebrow {
  display:inline-flex; align-items:center; gap:10px;
  padding:10px 14px; border-radius:999px; border:1px solid var(--stroke);
  background: rgba(255,255,255,0.04); color:#dbe3f4; font-size:13px; font-weight:600;
  margin-bottom:20px;
}
html[data-theme="light"] .eyebrow {
  background: rgba(15,23,42,0.04);
  color: var(--text);
}
.eyebrow::before {
  content:""; width:8px; height:8px; border-radius:50%;
  background: var(--accent); box-shadow: 0 0 16px var(--accent);
}
html[data-theme="light"] .eyebrow::before { box-shadow: none; }
h1 {
  max-width:900px; font-size: clamp(38px, 5.5vw, 76px);
  line-height:0.95; letter-spacing:-0.055em; font-weight:900; margin-bottom:18px;
}
.hero-text { max-width:760px; color: var(--muted); font-size: clamp(16px, 2vw, 18px); line-height:1.7; }

.toolbar { padding: 24px 0 34px; }
.toolbar { position: relative; z-index: 120; }
.toolbar-shell {
  display:grid; grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  gap:16px; padding:18px; border-radius:24px;
  background: var(--card-bg); border:1px solid var(--stroke);
  box-shadow: var(--shadow); backdrop-filter: blur(10px);
}
html[data-theme="light"] .toolbar-shell {
  box-shadow: 0 10px 30px rgba(15,23,42,0.10);
}
.field { display:flex; flex-direction:column; gap:8px; position:relative; z-index: 1; }
.field label { font-size:13px; color: var(--muted); font-weight:600; }
.input {
  min-height:52px; width:100%; border-radius:16px;
  border:1px solid var(--stroke); background: rgba(255,255,255,0.02);
  color: var(--text); padding: 0 16px; outline:none; transition:0.25s ease;
}
html[data-theme="light"] .input { background:#fff; }
.input:focus { border-color: rgba(124,140,255,0.48); box-shadow: 0 0 0 4px rgba(124,140,255,0.12); }
.custom-select, .multi-select { position:relative; }
.select-trigger {
  min-height:52px; width:100%; border-radius:16px; border:1px solid var(--stroke);
  background: rgba(255,255,255,0.02); color: var(--text);
  padding: 0 16px; display:flex; align-items:center; justify-content:space-between; gap:12px;
  cursor:pointer; transition:0.25s ease;
}
html[data-theme="light"] .select-trigger { background:#fff; }
.select-trigger:hover { background: rgba(255,255,255,0.05); }
.select-trigger.active { border-color: rgba(124,140,255,0.48); box-shadow: 0 0 0 4px rgba(124,140,255,0.12); }
.trigger-text { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.trigger-icon { flex:0 0 auto; color: var(--muted); transition:0.25s ease; font-size:14px; }
.select-trigger.active .trigger-icon { transform: rotate(180deg); }

.dropdown {
  position:absolute; top: calc(100% + 10px); left:0; width:100%;
  background: var(--dropdown-bg);
  border:1px solid var(--dropdown-border);
  border-radius:18px; box-shadow: 0 22px 60px rgba(0,0,0,0.46);
  padding:8px; display:none; z-index: 1000;
  opacity: 1;
}
.dropdown.open { display:block; }
.select-trigger.active { position: relative; z-index: 1001; }
.dropdown.open { position: absolute; }
.dropdown-list { display:grid; gap:6px; max-height: 280px; overflow-y:auto; }
.dropdown-item {
  min-height:46px; border-radius:14px; display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding: 0 14px; color: var(--text); background: transparent; cursor:pointer; transition:0.22s ease;
  border: 1px solid transparent;
}
.dropdown-item:hover { background: var(--dropdown-hover); border-color: rgba(124,140,255,0.2); }
.dropdown-item.active { background: var(--dropdown-active); border-color: rgba(124,140,255,0.3); }
.check {
  width:20px; height:20px; border-radius:6px; border:1px solid var(--stroke);
  display:inline-flex; align-items:center; justify-content:center; color: transparent; font-size:12px;
  background: rgba(255,255,255,0.03); flex: 0 0 auto;
}
html[data-theme="light"] .check { background: #f8fafc; }
.dropdown-item.active .check {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-color: transparent; color: #fff;
}
.multi-actions {
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding: 10px 10px 4px; border-bottom: 1px solid var(--dropdown-border);
  margin-bottom: 8px;
}
.mini-action {
  font-size:12px; font-weight:700; color: var(--primary); cursor:pointer;
  padding: 8px 12px; border-radius:10px;
  background: rgba(124,140,255,0.1); border: 1px solid rgba(124,140,255,0.3);
  transition: all 0.2s ease;
}
.mini-action:hover { background: rgba(124,140,255,0.25); transform: translateY(-1px); }

.pagerbar {
  margin-top: 16px;
  display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
}
.pager-right { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.muted { color: var(--muted); }
.pill {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--text);
  font-weight: 700;
  cursor:pointer;
  transition: 0.2s ease;
}
.pill:hover { transform: translateY(-1px); }
.pill.active {
  background: rgba(124,140,255,0.18);
  border-color: rgba(124,140,255,0.35);
}

.jobs-grid {
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding-bottom: 28px;
}
.job-card {
  position: relative;
  padding: 28px;
  border-radius: 28px;
  background: var(--card-bg);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  transition: 0.28s ease;
  display:flex;
  flex-direction:column;
}
html[data-theme="light"] .job-card {
  box-shadow: 0 12px 34px rgba(15,23,42,0.10);
}
.job-card:hover { transform: translateY(-4px); border-color: rgba(124,140,255,0.3); }
.job-top { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom:16px; }
.job-top-right { display:flex; align-items:center; gap:10px; flex-shrink: 0; }
.job-del {
  border: 1px solid rgba(248,113,113,0.45);
  background: rgba(248,113,113,0.12);
  color: #fecaca;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.job-del:hover { background: rgba(248,113,113,0.22); }
.job-badges { display:flex; flex-wrap:wrap; gap:10px; }
.badge {
  display:inline-flex; align-items:center; min-height:30px; padding: 0 10px;
  border-radius:999px; border:1px solid var(--stroke);
  background: rgba(255,255,255,0.04);
  color: var(--text); font-size: 12px; font-weight: 700;
}
html[data-theme="light"] .badge {
  background: rgba(15,23,42,0.04);
  border-color: rgba(15,23,42,0.14);
  color: #0b1020;
}
.badge-accent {
  background: rgba(124,140,255,0.14);
  border-color: rgba(124,140,255,0.24);
  color: #cfd6ff;
}
html[data-theme="light"] .badge-accent {
  background: rgba(99,102,241,0.12);
  border-color: rgba(99,102,241,0.22);
  color: #1f2a8a;
}
.badge-new {
  background: rgba(34,197,94,0.12);
  border-color: rgba(34,197,94,0.22);
  color: #9df0b8;
}
html[data-theme="light"] .badge-new {
  background: rgba(16,185,129,0.14);
  border-color: rgba(16,185,129,0.26);
  color: #065f46;
}
.job-date { color: var(--muted); font-size:13px; white-space:nowrap; }
.job-title {
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
  font-weight: 800;
}
.job-title a:hover { color: var(--primary); }
.job-company { color: var(--text); font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.job-salary { display:inline-flex; align-items:center; gap:8px; margin-bottom: 14px; color: var(--salary-color); font-weight: 700; font-size: 16px; }
.job-desc { color: var(--muted); font-size: 15px; line-height: 1.7; margin-bottom: 18px; flex-grow:1; }
.job-actions { display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
html[data-theme="light"] .job-actions .btn-ghost { background: rgba(15,23,42,0.03); }

.job-meta { display:flex; flex-wrap:wrap; gap:10px; margin-top: 18px; }
.meta-chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--stroke-soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
html[data-theme="light"] .meta-chip {
  background: rgba(15,23,42,0.04);
  border-color: rgba(15,23,42,0.14);
  color: #344255;
}

.job-page-card { overflow: hidden; }

.empty-state {
  display:none;
  padding: 34px;
  border-radius: 28px;
  background: var(--card-bg);
  border: 1px solid var(--stroke);
  color: var(--muted);
  text-align: center;
  margin-bottom: 26px;
}

.pagination {
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding-bottom: 100px;
}
.page-btn {
  min-height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}
.page-btn:hover { transform: translateY(-1px); }
.page-btn.active {
  background: rgba(124,140,255,0.18);
  border-color: rgba(124,140,255,0.35);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 14, 0.8);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
}
.modal.open { display:flex; }
.modal-card {
  width: min(920px, 100%);
  max-height: 90vh;
  overflow: auto;
  border-radius: 30px;
  background: var(--modal-bg);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  padding: 34px;
}
.modal-top { display:flex; justify-content:space-between; gap:20px; align-items:flex-start; margin-bottom:28px; }
.modal-title { font-size: clamp(28px, 4vw, 38px); line-height: 1.05; letter-spacing:-0.05em; margin-bottom: 12px; }
.modal-subtitle { color: var(--muted); font-size: 16px; font-weight: 600; }
.modal-close {
  width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  cursor:pointer; font-size: 20px; flex:0 0 auto;
}
.modal-grid { display:grid; grid-template-columns: 1.2fr 0.8fr; gap:24px; }
.modal-section {
  padding: 26px;
  border-radius: 22px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.02);
}
.modal-section + .modal-section { margin-top: 16px; }
.modal-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a5b4fc;
  margin-bottom: 14px;
}
.modal-text { color: var(--muted); font-size: 15px; line-height: 1.8; white-space: pre-wrap; }
.modal-list { list-style:none; display:grid; gap: 12px; }
.modal-list li { color: var(--muted); line-height: 1.6; padding-left: 18px; position: relative; }
.modal-list li::before {
  content:""; position:absolute; left:0; top: 9px; width:6px; height:6px; border-radius:50%;
  background: var(--primary);
}
.sidebar-box {
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.02);
}
.sidebar-box + .sidebar-box { margin-top: 14px; }
.sidebar-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a5b4fc;
  margin-bottom: 8px;
}
.sidebar-value { color: var(--text); font-size: 15px; line-height: 1.7; font-weight: 600; white-space: pre-wrap; }
.modal-actions { display:flex; flex-direction: column; gap: 12px; margin-top: 18px; }

.footer { padding: 32px 0; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-inner { display:flex; justify-content:space-between; align-items:center; gap:20px; flex-wrap:wrap; }
.footer-copy { color: #64748b; font-size: 14px; }
.footer-links { display:flex; gap:24px; flex-wrap:wrap; }
.footer-links a { color: var(--muted); font-size:14px; }
.footer-links a:hover { color: var(--text); }

@media (max-width: 1100px) {
  .toolbar-shell { grid-template-columns: 1fr 1fr; }
  .jobs-grid { grid-template-columns: 1fr; }
  .modal-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .header-inner { min-height: 78px; }
  .hero-jobs { padding: 50px 0 20px; }
  .toolbar-shell { grid-template-columns: 1fr; }
  .modal-card { padding: 24px; }
  .theme-toggle-label { display:none; }
  .logo span:last-child { display:none; }
  .header-actions .btn-ghost { display:none; }
  .header-actions { gap: 8px; }
  .btn { min-height: 46px; padding: 0 16px; }
}
@media (max-width: 520px) {
  .job-actions { flex-direction:column; align-items:stretch; }
  .job-actions .btn { width: 100%; }
  .modal-card { padding: 20px 16px; }
  .header-actions { gap: 8px; }
}

