:root {
  color-scheme: light;
  --page: #eef1f5;
  --paper: #ffffff;
  --ink: #111827;
  --text: #243044;
  --muted: #667085;
  --line: #d5dbe5;
  --line-dark: #b8c0cc;
  --blue: #174ea6;
  --blue-dark: #123a78;
  --success: #0f766e;
  --success-bg: #e8f3f1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--page);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

a {
  color: inherit;
}

.topbar {
  border-bottom: 1px solid #cfd6e0;
  background: #ffffff;
}

.topbar-inner,
.container,
.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar-inner {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 4px;
  color: #ffffff;
  background: #102a52;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.brand-name {
  display: block;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-subtitle {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.topbar-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.container {
  padding: 34px 0 52px;
}

.document {
  border: 1px solid var(--line);
  background: var(--paper);
}

.job-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 36px;
  padding: 38px 42px;
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.kicker {
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 10px 0 14px;
  color: var(--ink);
  font-size: clamp(34px, 4.8vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.summary {
  max-width: 760px;
  margin-bottom: 0;
  color: #3c4658;
  font-size: 17px;
  line-height: 1.66;
}

.facts {
  align-self: start;
  border: 1px solid var(--line);
}

.fact {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
}

.fact:last-child {
  border-bottom: 0;
}

.fact span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fact strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.document-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 42px;
  padding: 38px 42px 44px;
}

.job-content {
  min-width: 0;
}

.section {
  padding-top: 26px;
  margin-top: 26px;
  border-top: 1px solid var(--line);
}

.section:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.section h2,
.apply-panel h2,
.next-panel h2 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.section h3 {
  margin: 22px 0 9px;
  color: var(--ink);
  font-size: 15px;
}

.section p,
.section li {
  color: #3c4658;
}

.section p {
  margin-bottom: 14px;
}

.section p:last-child {
  margin-bottom: 0;
}

ul {
  margin: 0;
  padding-left: 20px;
}

li + li {
  margin-top: 8px;
}

.process-note {
  margin-top: 18px;
  padding: 13px 15px;
  border-left: 3px solid var(--blue);
  background: #f4f7fb;
  color: #33415c;
}

.sidebar {
  min-width: 0;
}

.apply-panel,
.next-panel {
  border: 1px solid var(--line);
  background: #ffffff;
}

.apply-panel {
  position: sticky;
  top: 24px;
  padding: 22px;
}

.next-panel {
  padding: 24px;
}

.form-note,
.field-note,
.legal {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.form-note {
  margin-bottom: 18px;
}

form {
  display: grid;
  gap: 13px;
}

.field {
  display: grid;
  gap: 6px;
}

label {
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  outline: none;
  padding: 8px 10px;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(23, 78, 166, 0.12);
}

input[type="file"] {
  padding: 7px 9px;
  color: var(--muted);
}

input[type="file"]::file-selector-button {
  margin-right: 8px;
  padding: 6px 9px;
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  background: #f4f6f8;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 0 16px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  width: 100%;
  color: #ffffff;
  background: var(--blue);
}

.button.secondary {
  color: var(--blue-dark);
  border-color: var(--line-dark);
  background: #ffffff;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button-row .button.primary {
  width: auto;
}

.site-footer {
  border-top: 1px solid #cfd6e0;
  background: #ffffff;
}

.footer-inner {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 12px;
}

.confirmation-document {
  border: 1px solid var(--line);
  background: #ffffff;
}

.confirmation-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 42px;
  padding: 38px 42px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 3px;
  color: #075e54;
  background: var(--success-bg);
  font-size: 12px;
  font-weight: 800;
}

.check {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--success);
  font-size: 11px;
}

.receipt {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 28px;
  border: 1px solid var(--line);
}

.receipt-item {
  padding: 14px;
  border-right: 1px solid var(--line);
}

.receipt-item:last-child {
  border-right: 0;
}

.receipt-item span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.receipt-item strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 11px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.steps li:first-child {
  padding-top: 0;
}

.steps li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.step-number {
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 800;
}

.steps strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 13px;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 960px) {
  .job-header,
  .document-body,
  .confirmation-body {
    grid-template-columns: 1fr;
  }

  .apply-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .topbar-inner,
  .container,
  .footer-inner {
    width: min(100% - 28px, 560px);
  }

  .topbar-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 12px 0;
  }

  .topbar-meta {
    display: none;
  }

  .job-header,
  .document-body,
  .confirmation-body {
    padding: 24px;
  }

  .fact {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .receipt {
    grid-template-columns: 1fr;
  }

  .receipt-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .receipt-item:last-child {
    border-bottom: 0;
  }
}
