:root {
  --red: #df1f26;
  --red-dark: #a90f18;
  --teal: #0b8a8f;
  --teal-dark: #075f68;
  --blue: #176fb3;
  --ink: #121722;
  --ink-soft: #263140;
  --muted: #657083;
  --line: #e4e8ee;
  --paper: #ffffff;
  --soft: #f5f7fa;
  --dark: #0f1722;
  --shadow: 0 18px 48px rgba(18, 23, 34, 0.14);
  --shadow-soft: 0 10px 24px rgba(18, 23, 34, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  color: var(--ink);
  background: var(--paper);
  font-family: 'Plus Jakarta Sans', Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: clip;
}

body.modal-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
  min-width: 0;
  max-width: 100%;
}

button:disabled,
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.64;
  transform: none;
  box-shadow: none;
}

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

.hidden {
  display: none !important;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  gap: 14px;
  background: #fff;
  color: var(--ink);
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.loader img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  animation: pulseLogo 1.4s ease-in-out infinite;
}

.loader span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.loader.done {
  opacity: 0;
  visibility: hidden;
}

@keyframes pulseLogo {
  0%, 100% { transform: scale(1); opacity: 0.84; }
  50% { transform: scale(1.08); opacity: 1; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px max(20px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(228, 232, 238, 0.88);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 1 auto;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius);
}

.brand-logo img,
.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.brand > span:not(.brand-logo) {
  display: grid;
  line-height: 1.2;
}

.brand strong {
  max-width: 290px;
  overflow: hidden;
  font-size: 15px;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.nav-links a {
  padding: 9px 12px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: #f0f5f7;
  color: var(--teal-dark);
}

.nav-toggle {
  display: none;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 74vh;
  overflow: hidden;
  color: #fff;
  background: var(--dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(15, 23, 34, 0.86), rgba(15, 23, 34, 0.54) 48%, rgba(169, 15, 24, 0.3)), var(--hero-image);
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.42), transparent);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 74vh;
  grid-template-columns: minmax(0, 760px) 320px;
  align-items: end;
  gap: 44px;
  padding: 112px 0 54px;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.98;
  text-transform: uppercase;
}

.hero-copy p:not(.eyebrow) {
  max-width: 670px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 21px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow,
.map-section .eyebrow {
  color: #bceff0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-primary {
  background: var(--red);
  color: #fff;
}

.btn-secondary {
  background: var(--teal-dark);
  color: #fff;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.54);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-outline {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.btn-small {
  min-height: 38px;
  padding: 9px 12px;
  font-size: 13px;
}

.hero-metrics {
  display: grid;
  gap: 10px;
  margin-bottom: 8px;
}

.hero-metrics div {
  border-left: 4px solid #bceff0;
  background: rgba(255, 255, 255, 0.12);
  padding: 16px;
  backdrop-filter: blur(12px);
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  font-size: 26px;
  line-height: 1.1;
}

.hero-metrics span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
}

.section {
  padding: 72px 0;
}

.muted-section {
  background: var(--soft);
}

.split-layout,
.form-layout,
.map-layout,
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  align-items: start;
  gap: 46px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-copy h2,
.section-heading h2,
.map-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.08;
}

.section-copy p:not(.eyebrow),
.section-heading p:not(.eyebrow),
.map-copy p {
  color: var(--muted);
  font-size: 17px;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.feature-list div,
.reason-grid article,
.job-card,
.info-card,
.apply-form,
.faq-item,
.login-card,
.admin-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.feature-list div {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  padding: 16px;
}

.feature-list strong {
  color: var(--red);
  font-size: 20px;
}

.feature-list span {
  color: var(--ink-soft);
  font-weight: 700;
}

.image-stack {
  display: grid;
  grid-template-columns: 0.95fr 0.75fr;
  align-items: end;
  gap: 14px;
}

.image-stack img {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.image-stack img:nth-child(2) {
  min-height: 300px;
  margin-bottom: -34px;
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.reason-grid article {
  min-height: 242px;
  padding: 24px;
}

.reason-grid span {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--red);
  font-size: 13px;
  font-weight: 950;
}

.reason-grid h3,
.job-card h3,
.timeline h3,
.info-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
}

.reason-grid p,
.job-card p,
.timeline p,
.info-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.job-mini-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.job-mini-list li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.job-mini-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--teal);
}

.shared-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.shared-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shared-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.shared-card h3 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.22;
}

.detail-block + .detail-block {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.detail-block h3 {
  margin: 0 0 12px;
}

.contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.contact-strip a {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.job-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tabs button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  padding: 8px 12px;
}

.filter-tabs button.active {
  border-color: var(--teal);
  background: #e9f7f8;
  color: var(--teal-dark);
}

.job-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.job-card {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  overflow: hidden;
}

.job-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.job-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.badge.open {
  border-color: rgba(11, 138, 143, 0.24);
  background: #e9f7f8;
  color: var(--teal-dark);
}

.badge.pause {
  border-color: rgba(176, 110, 0, 0.22);
  background: #fff6df;
  color: #8a5600;
}

.badge.hide {
  border-color: rgba(101, 112, 131, 0.24);
  background: #f2f4f7;
  color: var(--muted);
}

.job-card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.share-btn {
  width: 46px;
  padding: 0;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  background: #fff;
}

.timeline div {
  min-height: 220px;
  padding: 26px;
  border-right: 1px solid var(--line);
}

.timeline div:last-child {
  border-right: 0;
}

.timeline span {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  place-items: center;
  background: var(--red);
  color: #fff;
  font-weight: 950;
}

.application-section {
  background: linear-gradient(135deg, var(--dark), #172c34);
  color: #fff;
}

.application-section h2,
.application-section .section-copy h2 {
  color: #fff;
}

.application-section .section-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
}

.apply-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  align-content: start;
}

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

.apply-cta-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.55fr);
  align-items: center;
  gap: 38px;
}

.apply-cta-card {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  padding: 24px;
}

.apply-cta-card strong {
  color: #fff;
  font-size: 24px;
  line-height: 1.2;
}

.apply-cta-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 900;
}

input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  outline: none;
  padding: 12px 13px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="file"] {
  overflow: hidden;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(11, 138, 143, 0.12);
}

input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(223, 31, 38, 0.1);
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.field-error {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.form-hint {
  margin: -4px 0 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.form-hint a {
  color: var(--teal-dark);
  font-weight: 900;
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 42px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  overflow: hidden;
  box-shadow: none;
}

.faq-item button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 0;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  padding: 18px;
  text-align: left;
  font-weight: 900;
}

.faq-item button span {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  color: var(--red);
  text-align: center;
}

.faq-item p {
  display: none;
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
}

.faq-item.open p {
  display: block;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 12px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--soft);
}

.gallery-item:nth-child(1),
.gallery-item:nth-child(6) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  inset: auto 0 0;
  padding: 16px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), transparent);
  color: #fff;
}

.gallery-caption strong {
  display: block;
  font-size: 15px;
}

.gallery-caption span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.map-section {
  padding: 78px 0;
  background: var(--dark);
  color: #fff;
}

.map-section h2 {
  color: #fff;
}

.map-section p {
  color: rgba(255, 255, 255, 0.76);
}

.map-frame {
  min-height: 380px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  display: block;
  filter: saturate(0.96) contrast(1.04);
}

.site-footer {
  padding: 42px 0;
  background: #090e16;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: start;
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.footer-brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  object-position: center;
  background: #fff;
  padding: 5px;
  border-radius: var(--radius);
}

.site-footer h2 {
  margin: 0 0 5px;
  font-size: 20px;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.footer-links a {
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 9px 11px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.footer-links a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.floating-contacts {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: grid;
  gap: 8px;
}

.floating-contacts a {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 950;
  text-decoration: none;
  overflow: hidden;
}

.floating-contacts img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 50%;
}

.floating-contacts a:nth-child(2) {
  background: var(--teal);
}

.floating-contacts a:nth-child(3) {
  background: var(--blue);
}

.floating-contacts a:nth-child(4) {
  background: #111;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1300;
  width: max-content;
  max-width: min(520px, calc(100% - 32px));
  transform: translate(-50%, 20px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: var(--dark);
  color: #fff;
  opacity: 0;
  padding: 12px 16px;
  pointer-events: none;
  visibility: hidden;
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
  visibility: visible;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 14, 22, 0.72);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(88vh, 900px);
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 26px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.apply-modal-card {
  width: min(920px, 100%);
  padding: 0;
}

.apply-modal-card .apply-form {
  min-width: 0;
  border: 0;
  box-shadow: none;
}

.editor-modal-card {
  width: min(980px, 100%);
}

.modal-close {
  position: sticky;
  top: 0;
  z-index: 20;
  margin-left: auto;
  display: grid;
  width: 38px;
  height: 38px;
  min-width: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(18, 23, 34, 0.12);
  touch-action: manipulation;
}

.mini-login-card {
  display: grid;
  gap: 14px;
  width: min(420px, 100%);
}

.mini-login-card img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.editor-hint {
  margin: -6px 0 18px;
  color: var(--muted);
  font-weight: 700;
}

.inline-job-list {
  display: grid;
  gap: 14px;
  margin: 16px 0;
}

.inline-job-editor {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  padding: 16px;
}

.inline-job-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.inline-job-editor-head h3 {
  margin: 0 0 4px;
  font-size: 20px;
}

.inline-job-editor-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.inline-editor-actions {
  position: sticky;
  bottom: -26px;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 22px -26px -26px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  padding: 14px 26px;
  backdrop-filter: blur(10px);
}

.inline-edit-scope {
  position: relative;
  outline: 2px dashed transparent;
  outline-offset: -8px;
}

.inline-admin-active:not(.inline-viewer-mode) .inline-edit-scope {
  outline-color: rgba(223, 31, 38, 0.24);
}

.inline-edit-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid rgba(223, 31, 38, 0.28);
  border-radius: 999px;
  background: #fff;
  color: var(--red);
  cursor: pointer;
  padding: 8px 12px;
  box-shadow: var(--shadow-soft);
  font-weight: 950;
}

.inline-edit-btn span {
  color: var(--ink);
  font-size: 12px;
}

.inline-edit-target {
  position: relative;
}

.inline-field-edit-btn,
.inline-shared-edit-btn {
  display: inline-grid;
  min-width: 32px;
  height: 32px;
  margin: 6px 0 10px 8px;
  place-items: center;
  border: 1px solid rgba(223, 31, 38, 0.24);
  border-radius: 999px;
  background: #fff;
  color: var(--red);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  font-weight: 950;
  vertical-align: middle;
}

.inline-shared-edit-btn {
  width: max-content;
  height: auto;
  margin: 0 0 12px;
  padding: 8px 12px;
}

.inline-job-tools {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.inline-add-job-bar {
  display: flex;
  justify-content: flex-end;
  margin: 14px 0 18px;
}

.inline-direct-panel {
  display: grid;
  gap: 12px;
  margin: 10px 0 18px;
  border: 1px solid rgba(223, 31, 38, 0.24);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
  padding: 14px;
}

.inline-direct-panel label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 900;
}

.inline-direct-panel input,
.inline-direct-panel textarea,
.inline-direct-panel select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: 12px;
  font: inherit;
  font-weight: 800;
}

.inline-direct-panel textarea {
  resize: vertical;
}

.inline-panel-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.inline-editing-now {
  outline: 2px solid var(--red);
  outline-offset: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  caret-color: var(--red);
  cursor: text;
}

.inline-field-edit-btn.is-done {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

[contenteditable="true"].inline-editing-now:empty::before {
  content: "Nhập nội dung";
  color: currentColor;
  opacity: 0.58;
}

.inline-job-panel {
  grid-column: 1 / -1;
  margin-top: 16px;
}

.inline-viewer-mode .inline-edit-btn,
.inline-viewer-mode .inline-field-edit-btn,
.inline-viewer-mode .inline-shared-edit-btn,
.inline-viewer-mode .inline-job-tools,
.inline-viewer-mode .inline-add-job-bar,
.inline-viewer-mode .inline-direct-panel,
.inline-viewer-mode .admin-toolbar {
  display: none !important;
}

.admin-toolbar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 28px);
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  padding: 8px;
}

.admin-toolbar span {
  padding: 0 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.admin-redirect-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background: var(--soft);
  padding: 20px;
}

.admin-redirect-card {
  display: grid;
  width: min(460px, 100%);
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.admin-redirect-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.detail-hero {
  min-height: 58vh;
}

.detail-hero .hero-inner {
  min-height: 58vh;
  grid-template-columns: minmax(0, 780px);
  padding-bottom: 56px;
}

.detail-main {
  background: var(--soft);
}

.detail-layout {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.detail-content {
  display: grid;
  gap: 14px;
}

.info-card {
  padding: 24px;
}

.info-card h2 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.2;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  color: var(--ink-soft);
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--red);
}

.side-panel {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 14px;
}

.side-panel .apply-form {
  padding: 18px;
}

.quick-facts {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 18px;
}

.quick-facts div {
  display: grid;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.quick-facts div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.quick-facts strong {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
}

.quick-facts span {
  color: var(--ink);
  font-weight: 900;
}

.share-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.admin-page {
  min-height: 100vh;
  background: var(--soft);
}

.admin-login {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px 16px;
}

.login-card {
  display: grid;
  width: min(460px, 100%);
  gap: 14px;
  padding: 30px;
}

.login-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.login-card h1,
.admin-topbar h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.08;
}

.admin-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 270px minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: auto;
  border-right: 1px solid var(--line);
  background: #fff;
  padding: 20px;
}

.admin-brand .brand-logo {
  width: 50px;
  height: 50px;
  flex-basis: 50px;
}

.admin-tabs {
  display: grid;
  gap: 7px;
}

.admin-tabs button {
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  min-height: 44px;
  padding: 11px 12px;
  text-align: left;
  font-weight: 900;
}

.admin-tabs button.active,
.admin-tabs button:hover {
  background: var(--soft);
  color: var(--red);
}

.admin-main {
  width: min(100%, 1440px);
  min-width: 0;
  margin: 0 auto;
  padding: 24px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.file-btn {
  cursor: pointer;
}

.file-btn input {
  display: none;
}

.admin-panel {
  display: grid;
  gap: 16px;
}

.admin-card {
  padding: 22px;
}

.admin-card h2 {
  margin: 0 0 16px;
}

.admin-preview-toolbar,
.admin-preview-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.admin-live-preview {
  display: grid;
  gap: 16px;
}

.admin-preview-toolbar h2,
.admin-preview-section h3 {
  margin: 0;
}

.admin-preview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-image-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.admin-image-row img,
.admin-preview-section .gallery-item img {
  width: 100%;
  min-height: 150px;
  max-height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.admin-form-mini {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
  padding: 16px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.admin-helper-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-helper-card p {
  margin: 0;
  color: var(--muted);
}

.admin-list {
  display: grid;
  gap: 10px;
}

.job-admin-list,
.admin-shared-editor {
  margin-top: 16px;
}

.admin-job-row,
.admin-shared-group {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px;
}

.admin-job-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-job-row-head h3 {
  margin: 0;
}

.admin-toggle {
  display: inline-flex;
  width: fit-content;
  grid-template-columns: auto;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.admin-toggle input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.admin-shared-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 14px;
}

.admin-item h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.admin-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-item-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.admin-editor {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px;
}

.admin-editor textarea {
  min-height: 100px;
}

.preview-box {
  display: grid;
  gap: 12px;
  max-height: 540px;
  overflow: auto;
  border: 1px solid var(--line);
  background: #fff;
  padding: 16px;
}

.preview-hero {
  min-height: 260px;
  background-position: center;
  background-size: cover;
  color: #fff;
  display: grid;
  align-items: end;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.preview-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 34, 0.62);
}

.preview-hero div {
  position: relative;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .job-grid,
  .reason-grid,
  .shared-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    align-items: end;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, 1fr);
  }

  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline div:nth-child(2) {
    border-right: 0;
  }

  .timeline div:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .split-layout,
  .form-layout,
  .apply-cta-layout,
  .map-layout,
  .faq-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .site-header {
    align-items: center;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 8px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    background: var(--soft);
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
    gap: 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .admin-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-tabs button {
    text-align: center;
  }

  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-actions {
    width: 100%;
    justify-content: flex-start;
  }

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

  .admin-item {
    grid-template-columns: 1fr;
  }

  .admin-helper-card,
  .admin-job-row-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-shared-editor {
    grid-template-columns: 1fr;
  }

  .admin-item-actions {
    justify-content: flex-start;
  }
}

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

  .site-header {
    padding: 10px 14px;
  }

  .brand-logo {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .brand strong {
    max-width: 210px;
    font-size: 13px;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    gap: 24px;
    padding: 88px 0 34px;
  }

  .hero-copy h1 {
    font-size: 32px;
    line-height: 1.08;
  }

  .hero-actions,
  .job-toolbar,
  .admin-toolbar,
  .share-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .modal {
    align-items: stretch;
    padding: 0;
  }

  .modal-card {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
    padding: max(16px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
  }

  .apply-modal-card {
    padding: 0;
  }

  .apply-modal-card .modal-close {
    top: max(12px, env(safe-area-inset-top));
    width: 44px;
    height: 44px;
    min-width: 44px;
    margin: max(12px, env(safe-area-inset-top)) 12px -56px auto;
    font-size: 27px;
  }

  .apply-modal-card .apply-form {
    gap: 12px;
    min-height: 100%;
    padding: calc(68px + env(safe-area-inset-top)) 16px calc(28px + env(safe-area-inset-bottom));
  }

  .apply-form h2 {
    margin: 0 52px 6px 0;
    font-size: clamp(25px, 8vw, 32px);
    line-height: 1.15;
  }

  .apply-form .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .apply-form textarea {
    max-height: 180px;
  }

  .inline-job-editor-head,
  .inline-editor-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .inline-job-tools {
    position: static;
    justify-content: stretch;
    margin: 0 0 10px;
  }

  .inline-job-tools .btn,
  .inline-add-job-bar .btn,
  .inline-panel-actions .btn {
    width: 100%;
  }

  .inline-add-job-bar,
  .inline-panel-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .inline-field-edit-btn {
    min-width: 30px;
    height: 30px;
    margin-left: 4px;
  }

  .inline-editor-actions {
    bottom: -18px;
    margin: 18px -18px -18px;
    padding: 12px 18px;
  }

  .inline-edit-btn {
    top: 10px;
    right: 10px;
  }

  .inline-edit-btn span {
    display: none;
  }

  .admin-toolbar {
    left: 12px;
    right: 12px;
    bottom: 12px;
    transform: none;
    border-radius: var(--radius);
  }

  .admin-toolbar span {
    white-space: normal;
  }

  .btn,
  .job-card-actions {
    width: 100%;
  }

  .admin-main,
  .admin-sidebar {
    padding: 16px;
  }

  .admin-card,
  .login-card,
  .apply-form {
    padding: 18px;
  }

  .admin-tabs {
    grid-template-columns: 1fr;
  }

  .admin-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-actions .btn,
  .admin-actions label.btn,
  .admin-item-actions .btn,
  .admin-item-actions select {
    width: 100%;
  }

  input,
  textarea,
  select {
    font-size: 16px;
  }

  .job-grid,
  .reason-grid,
  .shared-grid,
  .shared-grid.compact,
  .timeline,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .hero-metrics div {
    padding: 10px 8px;
    border-left-width: 2px;
  }

  .hero-metrics strong {
    font-size: 17px;
  }

  .hero-metrics span {
    font-size: 10px;
    line-height: 1.25;
  }

  .timeline div,
  .timeline div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .timeline div:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 58px 0;
  }

  .image-stack {
    grid-template-columns: 1fr;
  }

  .image-stack img,
  .image-stack img:nth-child(2) {
    min-height: 240px;
    margin-bottom: 0;
  }

  .gallery-grid {
    grid-auto-rows: 250px;
  }

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(6) {
    grid-column: auto;
    grid-row: auto;
  }

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

  .footer-links {
    justify-content: flex-start;
  }

  .floating-contacts {
    right: 50%;
    bottom: calc(10px + env(safe-area-inset-bottom));
    display: flex;
    gap: 5px;
    transform: translateX(50%);
    border: 1px solid rgba(228, 232, 238, 0.92);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    padding: 5px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .floating-contacts a {
    width: 40px;
    height: 40px;
    box-shadow: none;
  }

  .floating-contacts img {
    width: 24px;
    height: 24px;
  }

  body.modal-open .floating-contacts {
    opacity: 0;
    pointer-events: none;
    transform: translate(50%, 12px);
  }

  .toast {
    top: calc(12px + env(safe-area-inset-top));
    right: 14px;
    bottom: auto;
    left: 14px;
    width: auto;
    max-width: none;
    transform: translateY(-16px);
    padding: 13px 15px;
    text-align: left;
  }

  .toast.show {
    transform: translateY(0);
  }

  .info-card,
  .shared-card,
  .quick-facts {
    min-width: 0;
    padding: 18px;
  }

  .info-card h2 {
    font-size: 22px;
  }

  .info-card,
  .shared-card,
  .quick-facts,
  .form-hint,
  .contact-strip {
    overflow-wrap: anywhere;
  }
}
