:root {
  --ink: #18251f;
  --muted: #607068;
  --forest: #185c43;
  --forest-dark: #0f4230;
  --sage: #dcece4;
  --cream: #fbf8f0;
  --gold: #e3ad43;
  --white: #ffffff;
  --line: #dce4df;
  --danger: #a53a3a;
  --shadow: 0 18px 50px rgba(24, 37, 31, 0.10);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
img { max-width: 100%; }
a { color: var(--forest); }
a:hover { color: var(--forest-dark); }
h1, h2, h3, h4, h5 { color: var(--ink); line-height: 1.15; font-weight: 750; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(251, 248, 240, 0.96);
  border-bottom: 1px solid rgba(24, 92, 67, 0.12);
  backdrop-filter: blur(14px);
}
.nav-shell {
  width: min(1160px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--forest);
  font-size: 20px;
}
.site-nav { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 9px 13px; border-radius: 999px; font-weight: 650; }
.site-nav a:hover { background: var(--sage); }
.site-nav .nav-cta { background: var(--forest); color: var(--white); }
.site-nav .nav-cta:hover { background: var(--forest-dark); color: var(--white); }

.hero {
  min-height: 680px;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(9, 36, 26, 0.90) 0%, rgba(9, 36, 26, 0.75) 48%, rgba(9, 36, 26, 0.18) 100%),
    url('../bg.jpg') center 26% / cover no-repeat;
  color: var(--white);
}
.hero-shell, .section-shell { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.hero-copy { max-width: 670px; padding: 90px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 800; color: var(--gold); }
.hero h1 { margin: 14px 0 20px; color: var(--white); font-size: clamp(2.6rem, 7vw, 5.4rem); letter-spacing: -0.055em; }
.hero p { max-width: 620px; color: rgba(255,255,255,.88); font-size: clamp(1rem, 2vw, 1.25rem); }
.button-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.button, .btn-site {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}
.button:hover, .btn-site:hover { transform: translateY(-1px); }
.button-primary, .btn-site { background: var(--gold); color: #2d210a; }
.button-primary:hover, .btn-site:hover { background: #edbb59; color: #2d210a; }
.button-light { background: var(--white); color: var(--forest-dark); }
.button-outline { border-color: rgba(255,255,255,.6); color: var(--white); background: rgba(255,255,255,.08); }
.button-forest { background: var(--forest); color: var(--white); }
.button-forest:hover { background: var(--forest-dark); color: var(--white); }

.search-panel {
  margin-top: -54px;
  position: relative;
  z-index: 2;
}
.search-card, .surface {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.search-card { padding: 26px; }
.search-grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; }
.field label { display: block; font-size: .88rem; font-weight: 750; margin-bottom: 7px; }
.field input, .field select, .field textarea,
.form-control, .form-select {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #cbd7d0;
  border-radius: 12px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus,
.form-control:focus, .form-select:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 4px rgba(24, 92, 67, .12);
  outline: none;
}

.section { padding: 88px 0; }
.section-soft { background: #edf3ef; }
.section-dark { background: var(--forest-dark); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-heading { max-width: 720px; margin-bottom: 38px; }
.section-heading h2 { font-size: clamp(2rem, 4vw, 3.25rem); margin: 8px 0 12px; letter-spacing: -.04em; }
.section-heading p { color: var(--muted); font-size: 1.08rem; }
.section-dark .section-heading p { color: rgba(255,255,255,.72); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.info-card .number { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: var(--sage); color: var(--forest); font-weight: 850; }
.info-card h3 { margin: 18px 0 8px; font-size: 1.2rem; }
.info-card p { margin: 0; color: var(--muted); }
.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; border-radius: var(--radius); background: rgba(255,255,255,.12); }
.trust-item { padding: 28px; background: rgba(255,255,255,.06); }
.trust-item strong { display: block; color: var(--gold); font-size: 1.05rem; margin-bottom: 6px; }

.page-hero { padding: 70px 0 48px; background: linear-gradient(135deg, var(--forest-dark), var(--forest)); color: var(--white); }
.page-hero h1 { color: var(--white); font-size: clamp(2.3rem, 5vw, 4.2rem); margin: 8px 0 12px; letter-spacing: -.045em; }
.page-hero p { color: rgba(255,255,255,.8); max-width: 700px; font-size: 1.08rem; }
.content-shell { width: min(1160px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0 88px; }

.worker-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.worker-card { display: flex; flex-direction: column; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(24,37,31,.07); }
.worker-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--sage); }
.worker-card-body { padding: 22px; flex: 1; }
.worker-card h2 { font-size: 1.35rem; margin: 10px 0 8px; }
.worker-card p { color: var(--muted); }
.worker-card-footer { padding: 0 22px 22px; }
.pill, .badge-soft { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; background: var(--sage); color: var(--forest-dark); font-size: .78rem; font-weight: 750; }
.empty-state { padding: 50px 24px; text-align: center; background: var(--white); border: 1px dashed #b8c7be; border-radius: var(--radius); }

.profile-layout { display: grid; grid-template-columns: 330px 1fr; gap: 28px; align-items: start; }
.profile-aside { position: sticky; top: 100px; }
.profile-photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 18px; background: var(--sage); }
.profile-main, .profile-aside { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 12px 34px rgba(24,37,31,.07); }
.detail-block + .detail-block { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 26px; }
.detail-block p { white-space: pre-line; }
.day-list { display: flex; flex-wrap: wrap; gap: 7px; }

.auth-wrap { width: min(520px, calc(100% - 32px)); margin: 54px auto 90px; }
.auth-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 5vw, 40px); }
.auth-card h1 { text-align: center; margin-top: 0; }
.auth-card .lead { color: var(--muted); text-align: center; }
.form-stack { display: grid; gap: 18px; }
.notice { padding: 14px 16px; border-radius: 12px; margin-bottom: 18px; }
.notice-success { background: #e1f3e7; color: #155b36; }
.notice-error { background: #f8e4e4; color: #8a2e2e; }
.notice-info { background: #e4eef8; color: #204e7a; }

.legal { max-width: 820px; }
.legal h2 { margin-top: 34px; }
.legal p, .legal li { color: #4e5e56; }

.site-footer { background: #102e23; color: rgba(255,255,255,.72); padding: 54px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; }
.site-footer h2, .site-footer h3 { color: var(--white); }
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-links { display: grid; gap: 8px; }
.footer-bottom { margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; }

@media (max-width: 900px) {
  .worker-grid, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-aside { position: static; }
  .search-grid { grid-template-columns: 1fr 1fr; }
  .search-grid .button { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .nav-shell { min-height: auto; padding: 14px 0; align-items: flex-start; }
  .brand span:last-child { display: none; }
  .site-nav { gap: 2px; }
  .site-nav a { padding: 8px 9px; font-size: .88rem; }
  .hero { min-height: 630px; background-position: 58% center; }
  .hero-copy { padding: 70px 0 100px; }
  .search-grid, .worker-grid, .grid-3, .trust-strip, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .search-panel { margin-top: -72px; }
  .search-card { padding: 20px; }
  .page-hero { padding: 52px 0 36px; }
}
