:root {
  --ink: #1a1714;
  --paper: #f6f1ea;
  --card: #fffdf9;
  --line: rgba(26, 23, 20, 0.12);
  --accent: #0f6b5c;
  --accent-soft: #d8efe9;
  --warn: #8a3b12;
  --font: "Figtree", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --naskh: "Noto Naskh Arabic", "Figtree", sans-serif;
}

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

html.vacancy-html {
  scroll-behavior: smooth;
}

body.vacancy-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse at top left, rgba(15, 107, 92, 0.08), transparent 40%),
    linear-gradient(180deg, #efe8de 0%, var(--paper) 40%, #ebe4da 100%);
  line-height: 1.5;
}

.site-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(246, 241, 234, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.back-home {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
}

.back-home:hover {
  text-decoration: underline;
}

.page {
  width: min(860px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 1.25rem 0 4rem;
}

.hero {
  margin-bottom: 1.25rem;
}

.hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
}

.badge {
  margin: 0;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}

.hero h1 {
  margin: 0.65rem 0 0.5rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  line-height: 1.15;
  font-weight: 650;
}

.lede {
  margin: 0;
  color: rgba(26, 23, 20, 0.72);
  max-width: 40rem;
}

.banner {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #fff3e8;
  border: 1px solid rgba(138, 59, 18, 0.25);
  color: var(--warn);
  font-weight: 600;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.15rem 1.15rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 10px 30px rgba(26, 23, 20, 0.04);
}

.card h2 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: 1.25rem;
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}

.card h2 span {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.card h3 {
  margin: 1rem 0 0.65rem;
  font-size: 1rem;
}

.grid.two {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .grid.two {
    grid-template-columns: 1fr 1fr;
  }
}

label,
fieldset {
  display: block;
  margin-bottom: 0.85rem;
}

label.block {
  margin-top: 0.85rem;
}

label span,
legend {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
}

input[type="text"],
input[type="tel"],
input[type="number"],
input[type="password"],
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

textarea.grow {
  min-height: 96px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(15, 107, 92, 0.35);
  border-color: var(--accent);
}

.is-invalid,
fieldset.is-invalid {
  outline: 2px solid rgba(180, 40, 40, 0.55);
  border-radius: 12px;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem;
}

.radio,
.tick {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-right: 1rem;
  margin-bottom: 0.35rem;
  font-weight: 500;
}

.skill-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 560px) {
  .skill-row {
    grid-template-columns: 1fr 1fr;
  }
}

.tick-col {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 0;
}

.tick-col > span:first-child {
  width: 100%;
  margin: 0;
}

.pct-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-inline-start: auto;
}

.pct {
  width: 4.5rem;
  padding: 0.4rem 0.5rem;
}

.pct-sign {
  font-weight: 700;
  color: rgba(26, 23, 20, 0.55);
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.save-note {
  margin: 0;
  color: rgba(26, 23, 20, 0.65);
  font-size: 0.92rem;
}

button[type="submit"],
#gate button {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #0f6b5c, #148f7a);
  padding: 0.9rem 1.2rem;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(15, 107, 92, 0.25);
}

button[type="submit"]:hover,
#gate button:hover {
  filter: brightness(1.05);
}

button.is-gray,
button:disabled {
  background: #9aa3a0;
  box-shadow: none;
  cursor: default;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 50;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

[dir="auto"],
[dir="rtl"],
textarea[dir="auto"] {
  font-family: var(--naskh), var(--font);
}
