@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;650;700;750;800&display=swap');

:root {
  color-scheme: dark;
  font-family: Inter, Arial, sans-serif;
  color: #f9f4ef;
  background: #141213;
  --muted: #c8bcb6;
  --accent: #ff6844;
  --border: #413533;
  --button: #c3341a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid #ff8d72; outline-offset: 4px; }
.shell { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; z-index: 1; padding: 8px 12px; background: #141213; transform: translateY(-120%); }
.skip:focus { transform: none; }
.top { min-height: 82px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid var(--border); }
.logo { flex: none; display: block; position: relative; width: 125px; height: 43px; overflow: hidden; }
.logo img { position: absolute; width: 238px; height: auto; max-width: none; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.header-link { font-size: .9rem; font-weight: 650; text-decoration: none; }
.header-link span { margin-left: 5px; color: var(--accent); }
.hero { display: grid; grid-template-columns: 1fr .86fr; align-items: center; gap: clamp(30px, 6vw, 76px); padding-block: clamp(44px, 6vw, 76px); }
.eyebrow { margin: 0 0 14px; font-size: .78rem; font-weight: 750; color: var(--accent); text-transform: uppercase; letter-spacing: .12em; }
h1, h2, h3 { margin: 0; }
h1 { font-size: clamp(3rem, 6.4vw, 6rem); letter-spacing: -.075em; line-height: .98; font-weight: 750; }
h1 em { color: var(--accent); font-style: normal; }
.intro { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.24rem); line-height: 1.52; margin: 21px 0 22px; max-width: 40ch; }
.job-meta { display: flex; flex-wrap: wrap; gap: 12px 22px; margin: 26px 0; }
.job-meta dt { color: var(--muted); font-size: .74rem; margin-bottom: 5px; }
.job-meta dd { margin: 0; font-size: .85rem; font-weight: 650; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 52px; padding: 12px 17px; background: var(--button); border: 1px solid #e45034; border-radius: 10px; color: #fff; font-weight: 750; text-decoration: none; }
.button:hover { background: #a92b16; }
.button:disabled { opacity: .72; cursor: wait; }
.button span { font-size: 1.1em; }
.team { margin: 0; min-width: 0; }
.team img { display: block; width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: cover; object-position: center; border-radius: 20px; border: 1px solid var(--border); }
.section { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 6vw, 76px); padding-block: 42px; border-top: 1px solid var(--border); }
h2 { font-size: clamp(1.65rem, 3vw, 2.6rem); line-height: 1.12; letter-spacing: -.05em; font-weight: 750; }
.section p { color: var(--muted); font-size: 1rem; line-height: 1.6; margin: 12px 0 0; }
.responsibilities { display: grid; gap: 17px; margin: 0; padding: 0; list-style: none; }
.responsibilities li { padding-left: 14px; border-left: 2px solid var(--accent); }
.responsibilities span { display: block; color: var(--muted); font-size: .95rem; line-height: 1.55; margin-top: 4px; }
.section .support { align-self: center; margin: 0; padding: 19px 20px; background: #201a19; border: 1px solid var(--border); border-radius: 13px; }
.support strong { color: #fff4ed; }
.apply { scroll-margin-top: 20px; padding-block: 48px 55px; }
.form-box { padding: clamp(18px, 3.4vw, 32px); border: 1px solid var(--border); border-radius: 16px; background: #1d1919; }
form { display: grid; gap: 17px; }
.field { display: grid; gap: 7px; }
.field > label, legend { font-size: .92rem; font-weight: 650; }
.field input { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid #675652; border-radius: 8px; color: inherit; background: #151212; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { padding: 0; margin-bottom: 7px; }
.choices { display: flex; gap: 8px; }
.choices label { display: flex; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid #675652; border-radius: 8px; cursor: pointer; }
.choices input { margin: 0; accent-color: var(--accent); }
.field input::file-selector-button { margin-right: 8px; padding: 6px 8px; border: 0; border-radius: 5px; background: #45352f; color: #fff; font: inherit; cursor: pointer; }
.form-box .hint, .form-box .error { font-size: .8rem; margin: 0; }
.form-box .error { color: #ffac96; }
.form-box .button { width: 100%; }
.confirmation h3 { color: #fff7f0; font-size: 1.48rem; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font-size: .82rem; border-top: 1px solid var(--border); padding-block: 20px 28px; }
.foot a { text-decoration: none; }

@media (max-width: 760px) {
  .shell { width: min(530px, calc(100% - 36px)); }
  .top { min-height: 65px; }
  .logo { width: 104px; height: 36px; }
  .logo img { width: 198px; }
  .hero { grid-template-columns: 1fr; gap: 22px; padding-block: 32px; }
  .hero .button { width: 100%; }
  .team img { aspect-ratio: 5 / 4; }
  .section { grid-template-columns: 1fr; gap: 19px; padding-block: 28px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
