:root {
  --gap: 12px;
  --primary: #f0aa3c;
}
body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
    Arial, sans-serif;
  margin: 20px;
  color: #111;
}
h2 {
  margin: 0 0 12px;
}
.top {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 14px;
}
label {
  font-size: 11px;
  color: #444;
  display: block;
  margin-bottom: 4px;
}
input,
textarea,
select {
  border: 1px solid #e5e7eb;
  padding: 6px;
  border-radius: 6px;
  font: inherit;
}
input[type="text"],
input[type="email"] {
  width: 260px;
}
.btn {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}
.btn.secondary {
  background: #fff;
  color: #111;
}
.hint {
  font-size: 12px;
  color: #6b7280;
}
.ok {
  color: #166534;
  font-weight: 600;
}
.err {
  color: #991b1b;
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 1fr);
  gap: var(--gap);
}
@media (max-width: 1000px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* панель форм */
.forms {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}
.card-form {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 10px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(200px, 1fr));
}
.card-form .row {
  display: flex;
  flex-direction: column;
}
.card-form .row.full {
  grid-column: 1 / -1;
}
.card-form .controls {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.toolbar {
  display: flex;
  gap: 10px;
}

/* pager below forms */
.pager {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 8px;
  font-size: 12px;
}
.pager .btn {
  padding: 6px 10px;
  border-radius: 8px;
}

/* превью карточек (твои стили) */
.job-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin: 20px auto;
  max-width: 1200px;
  background: #fafafa;
  border: 1px dashed #e5e7eb;
  border-radius: 14px;
  padding: 12px;
}
.job-card {
  flex: 1 1 320px;
  max-width: 360px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.job-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.job-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.job-company {
  font-size: 14px;
  font-weight: 600;
  color: #4a5568;
  letter-spacing: 0.2px;
}
.job-title {
  margin: 2px 0 0;
  font-size: 18px;
  line-height: 1.25;
  color: #111;
}
.job-type {
  white-space: nowrap;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  padding: 4px 8px;
  border: 1px solid;
}
.job-type.fulltime {
  color: #175cd3;
  background: #eef2ff;
  border-color: #dbe4ff;
}
.job-type.parttime,
.job-type.contract {
  color: #93370d;
  background: #fff7ed;
  border-color: #ffedd5;
}
.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.job-tag {
  font-size: 12px;
  color: #334155;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 4px 8px;
  border-radius: 999px;
}
.job-tag.salary {
  color: #14532d;
  background: #ecfdf5;
  border-color: #d1fae5;
}
.job-qualifications {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 4px;
}
.job-description {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #111827;
}
.job-contact {
  text-decoration: none;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  display: inline-block;
  margin-top: auto;
  text-align: center;
}

.job-contact:link,
.job-contact:visited,
.job-contact:hover,
.job-contact:active,
.job-contact:focus {
  color: #fff;
}

.job-contact:hover,
.job-contact:active,
.job-contact:focus {
  color: #fff;
}
.job-submit-top {
  display: flex;
  justify-content: center;
  margin: 12px 0 8px;
}
.job-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff !important;
  font-weight: 700;
  border: 1px solid #e6a12a;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.job-submit-btn:link,
.job-submit-btn:visited,
.job-submit-btn:hover,
.job-submit-btn:active,
.job-submit-btn:focus {
  color: #fff;
}

.recipients-list {
  max-height: 200px;
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 6px;
  font-size: 12px;
  margin-top: 4px;
  background: #f9fafb;
}

.recipients-list ul {
  margin: 0;
  padding-left: 18px;
}
