:root {
  color-scheme: light;
  --ink: #17231d;
  --muted: #607068;
  --paper: #f5f2ea;
  --card: #fffdf8;
  --line: #dcd8cc;
  --green: #1f6b4f;
  --green-dark: #124935;
  --lime: #c9f26b;
  --orange: #ff8c52;
  --shadow: 0 22px 60px rgba(26, 52, 40, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.hero {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 78% 12%, rgba(201, 242, 107, 0.28), transparent 24%),
    linear-gradient(130deg, #0f3c2c, #1d7152 68%, #2d8865);
}

.hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -170px;
  width: 480px;
  height: 480px;
  border: 70px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 28px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: var(--green-dark);
  background: var(--lime);
}

.source-link {
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  text-underline-offset: 4px;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 58px 0 130px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--lime);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  max-width: 800px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(52px, 8vw, 92px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.hero-copy {
  max-width: 610px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.55;
}

.main-content { margin-top: -62px; position: relative; z-index: 2; }

.search-panel {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr auto;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

label span {
  display: block;
  margin: 0 0 8px 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

input, select, button {
  min-height: 50px;
  width: 100%;
  border-radius: 13px;
  font: inherit;
}

input, select {
  border: 1px solid var(--line);
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
}

input:focus, select:focus {
  border-color: var(--green);
  outline: 3px solid rgba(31, 107, 79, 0.14);
}

button {
  align-self: end;
  width: auto;
  border: 0;
  padding: 0 24px;
  color: #fff;
  background: var(--green);
  cursor: pointer;
  font-weight: 750;
}

button:hover { background: var(--green-dark); }
button:disabled { cursor: wait; opacity: 0.65; }

.status {
  min-height: 82px;
  padding: 30px 4px 16px;
  color: var(--muted);
}

.status.error { color: #9d352b; }

.comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.day-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
}

.day-card.accent { border-top: 5px solid var(--orange); }
.day-card.primary { border-top: 5px solid var(--green); }

.day-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.day-label { margin: 0 0 4px; color: var(--muted); font-size: 13px; }
.day-title { margin: 0; font-family: Georgia, serif; font-size: 32px; font-weight: 500; }
.count { font-size: 44px; font-weight: 800; letter-spacing: -0.05em; }

.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
}

.metric {
  min-height: 92px;
  padding: 16px;
  border-radius: 16px;
  background: #f0eee6;
}

.metric span { display: block; color: var(--muted); font-size: 12px; }
.metric strong { display: block; margin-top: 8px; font-size: 20px; }

.requirements { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tag { padding: 8px 11px; border-radius: 999px; background: #e3eddc; font-size: 13px; }

.vacancies { display: grid; gap: 10px; }

.vacancy {
  display: block;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.vacancy:hover { transform: translateY(-2px); border-color: var(--green); }
.vacancy h3 { margin: 0 0 8px; font-size: 16px; line-height: 1.35; }
.vacancy-salary { color: var(--green-dark); font-weight: 800; }
.vacancy-meta { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.vacancy-requirement { margin: 10px 0 0; color: #44534c; font-size: 13px; line-height: 1.45; }

.empty {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
}

.footer {
  padding-block: 48px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .search-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-panel button { width: 100%; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 24px, 1180px); }
  .hero { min-height: 440px; }
  .hero-content { padding-top: 42px; }
  .source-link { display: none; }
  .search-panel, .comparison { grid-template-columns: 1fr; }
  .search-panel { padding: 16px; border-radius: 20px; }
  .day-card { padding: 20px; }
}
