@font-face {
  font-family: 'Nevan RUS';
  src: url('../fonts/NevanRUS.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('../fonts/barlow-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('../fonts/barlow-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('../fonts/barlow-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('../fonts/barlow-300-italic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #191c19;
  --gold:    #C88F4D;
  --gold-lt: #FFBD59;
  --white:   #F4F1EA;
  --muted:   #9A9D98;
  --line:    rgba(244,241,234,0.10);
  --panel:   #151815;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 56px;
  background: rgba(25,28,25,0.9);
  backdrop-filter: blur(12px);
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo-text { display: flex; align-items: baseline; gap: 6px; line-height: 1; }
.nav-logo-naveria,
.nav-logo-space {
  font-family: 'Nevan RUS', serif;
  font-weight: 400;
  font-size: 20px;
}
.nav-logo-naveria { color: var(--white); }
.nav-logo-space { color: var(--gold); }
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 15px;
  font-weight: 400;
  color: rgba(244,241,234,0.62);
  text-decoration: none;
  transition: color 0.25s;
}
.nav-links a:hover,
.nav-links a.is-active { color: var(--white); }
.nav-cta {
  color: var(--white) !important;
  border: 1px solid rgba(244,241,234,0.22);
  padding: 8px 16px;
  border-radius: 999px;
  transition: border-color 0.25s, background 0.25s !important;
}
.nav-cta:hover {
  border-color: var(--gold);
  background: rgba(200,143,77,0.12);
}
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.is-open span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle.is-open span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.page {
  flex: 1;
  padding: 56px 56px 96px;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.section-label {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 16px;
}

.page-title {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.page-title em { font-style: italic; font-weight: 300; color: var(--gold); }
.page-intro {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(244,241,234,0.52);
  max-width: 520px;
  margin-bottom: 16px;
}
.role-count {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}

.role-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.role-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px 40px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.3s;
  align-items: start;
}
.role-card:hover .role-card-action { color: var(--gold-lt); }
.role-card-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}
.role-card-title {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.role-card-summary {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(244,241,234,0.5);
  max-width: 640px;
}
.role-card-action {
  font-size: 15px;
  font-weight: 400;
  color: var(--gold);
  white-space: nowrap;
  align-self: center;
  transition: color 0.25s;
}
.empty-roles {
  padding: 48px 0;
  color: rgba(244,241,234,0.45);
  line-height: 1.8;
}
.empty-roles a { color: var(--gold); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 28px;
  transition: color 0.25s;
}
.back-link:hover { color: var(--gold); }
.jd-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.jd-toolbar .back-link { margin-bottom: 0; }
.apply-jump {
  display: none;
  color: var(--gold);
}

.jd-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.72fr);
  gap: 28px;
  align-items: start;
}
.jd-main, .jd-apply {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.jd-main { padding: 40px 40px 48px; }
.jd-apply {
  padding: 32px 28px 36px;
  position: sticky;
  top: 96px;
}

.jd-pills {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.jd-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
  overflow-wrap: anywhere;
}
.jd-summary {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(244,241,234,0.55);
  margin-bottom: 28px;
}
.jd-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 20px 0;
  margin-bottom: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.jd-fact-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.jd-fact-value {
  font-size: 15px;
  color: var(--white);
  line-height: 1.4;
}

.jd-section { padding-top: 32px; }
.jd-section h2 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.jd-section p {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(244,241,234,0.52);
}
.jd-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.jd-section li {
  padding-left: 14px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(244,241,234,0.52);
  position: relative;
}
.jd-section li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 5px;
  height: 1px;
  background: var(--gold);
}

.apply-kicker {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.apply-title {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 10px;
}
.apply-copy {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(244,241,234,0.45);
  margin-bottom: 22px;
}
.apply-btn {
  display: inline-block;
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--bg);
  background: var(--gold);
  border: none;
  padding: 12px 20px;
  border-radius: 999px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.25s;
}
.apply-btn:hover { background: var(--gold-lt); }
.apply-email-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.apply-email {
  font-size: 15px;
  color: var(--white);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.25s;
}
.apply-email:hover { color: var(--gold); }
.apply-copy-btn {
  flex-shrink: 0;
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--gold);
  background: transparent;
  border: 1px solid rgba(244,241,234,0.18);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
}
.apply-copy-btn:hover {
  border-color: var(--gold);
  background: rgba(200,143,77,0.12);
}
.apply-hint {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.jd-missing { padding: 80px 0; }
.jd-missing h1 {
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.jd-missing p { color: rgba(244,241,234,0.45); margin-bottom: 24px; }

footer {
  border-top: 1px solid var(--line);
  padding: 28px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.footer-logo .fl-naveria,
.footer-logo .fl-space {
  font-family: 'Nevan RUS', serif;
  font-size: 14px;
}
.footer-logo .fl-naveria { color: var(--muted); }
.footer-logo .fl-space { color: var(--gold); }
.footer-copy {
  font-size: 13px;
  color: var(--muted);
}
.footer-copy a {
  color: var(--muted);
  text-decoration: none;
}
.footer-copy a:hover { color: var(--gold); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(200,143,77,0.45); }
* { scrollbar-width: thin; scrollbar-color: rgba(200,143,77,0.45) var(--bg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    background: rgba(25,28,25,0.97);
    border-bottom: 1px solid var(--line);
    z-index: 120;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { display: block; padding: 14px 0; font-size: 17px; }
  .nav-cta { display: inline-block; margin-top: 8px; width: fit-content; }
}
@media (max-width: 900px) {
  nav { padding: 16px 24px; }
  .page { padding: 36px 24px 72px; }
  .jd-layout { grid-template-columns: 1fr; }
  .jd-apply { position: static; }
  .apply-jump { display: inline-flex; }
  .apply-btn { width: 100%; }
  .jd-main { padding: 28px 22px 36px; }
  .jd-facts { grid-template-columns: 1fr; gap: 16px; }
  .role-card { grid-template-columns: 1fr; gap: 12px; }
  footer { padding: 24px; flex-direction: column; gap: 10px; text-align: center; }
}
@media (max-width: 600px) {
  .page-title { font-size: 34px; }
  .role-card-title { font-size: 22px; }
}
