:root {
  --header-height: 76px;
  --ink: #12201c;
  --muted: #5e6a65;
  --paper: #f6f4ee;
  --white: #ffffff;
  --teal: #0f766e;
  --teal-dark: #0b4f4a;
  --amber: #d6942f;
  --coral: #d96c4f;
  --line: rgba(18, 32, 28, 0.14);
  --shadow: 0 14px 34px rgba(18, 32, 28, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  width: 100%;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 44px;
  border-bottom: 1px solid rgba(18, 32, 28, 0.1);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  font-size: 1.08rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
}

.brand-logo {
  display: block;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}

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

.nav a {
  min-height: 40px;
  padding: 11px 14px;
  border-radius: 8px;
  color: #2f3d39;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
  white-space: nowrap;
}

.nav a:hover,
.nav a:focus-visible {
  background: rgba(15, 118, 110, 0.12);
  color: var(--teal-dark);
}

.nav-login {
  border: 1px solid rgba(18, 32, 28, 0.16);
}

.hero {
  position: relative;
  display: flex;
  min-height: min(660px, calc(100svh - 80px));
  align-items: center;
  padding: 126px 44px 82px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 42%, rgba(214, 148, 47, 0.14), rgba(214, 148, 47, 0) 32%),
    linear-gradient(135deg, #ffffff 0%, #f6f4ee 58%, #ece7da 100%);
  color: var(--ink);
}

.hero::before {
  position: absolute;
  top: 50%;
  right: clamp(18px, 8vw, 130px);
  width: min(430px, 38vw);
  aspect-ratio: 1;
  background: url("assets/logos/logo-sv-badge.svg") center / contain no-repeat;
  content: "";
  opacity: 0.08;
  transform: translateY(-50%);
  pointer-events: none;
}

.hero::after {
  position: absolute;
  right: 44px;
  bottom: 38px;
  left: 44px;
  height: 1px;
  background: rgba(18, 32, 28, 0.12);
  content: "";
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 88px));
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: 3.75rem;
  line-height: 1.06;
  overflow-wrap: break-word;
}

h2 {
  margin-bottom: 0;
  font-size: 2.5rem;
  line-height: 1.12;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.22rem;
  line-height: 1.25;
}

.hero-text {
  max-width: 650px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: none;
}

.button.secondary {
  border: 1px solid rgba(18, 32, 28, 0.2);
  color: var(--ink);
}

.section {
  scroll-margin-top: calc(var(--header-height) + 24px);
  padding: 86px 44px;
}

.about-section {
  background: var(--white);
}

.history-section {
  background:
    linear-gradient(180deg, rgba(214, 148, 47, 0.08), rgba(214, 148, 47, 0)),
    var(--paper);
}

.contacts-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 20%, rgba(214, 148, 47, 0.18), rgba(214, 148, 47, 0) 32%),
    linear-gradient(135deg, #111b18 0%, #12201c 100%);
  color: var(--white);
}

.contacts-section::before {
  position: absolute;
  right: -90px;
  bottom: -150px;
  width: min(520px, 58vw);
  aspect-ratio: 1;
  background: url("assets/logos/logo-sv-primary.svg") center / contain no-repeat;
  content: "";
  opacity: 0.06;
  pointer-events: none;
}

.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 72px;
  align-items: start;
}

.lead-stack p,
.contact-lead {
  color: var(--muted);
  font-size: 1.14rem;
  line-height: 1.8;
}

.lead-stack p:last-child,
.contact-lead {
  margin-bottom: 0;
}

.about-copy {
  display: grid;
  gap: 16px;
}

.about-copy p {
  margin-bottom: 0;
}

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

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.benefit-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: none;
}

.benefit-card {
  min-height: 220px;
  padding: 24px;
}

.card-number {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--coral);
  font-size: 0.88rem;
  font-weight: 900;
}

.benefit-card p,
.timeline-item p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.sticky-note {
  position: sticky;
  top: calc(var(--header-height) + 28px);
  margin-bottom: 0;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  position: relative;
  padding: 24px 0 24px 34px;
  border-bottom: 1px solid rgba(18, 32, 28, 0.15);
}

.timeline-item::before {
  position: absolute;
  top: 31px;
  left: 0;
  width: 12px;
  height: 12px;
  border: 4px solid rgba(15, 118, 110, 0.18);
  border-radius: 50%;
  background: var(--teal);
  content: "";
}

.timeline-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--teal);
  font-weight: 900;
}

.contact-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 56px;
  align-items: center;
}

.contacts-section h2 {
  max-width: 720px;
}

.contacts-section .contact-lead {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.74);
}

.contact-card {
  display: grid;
  gap: 18px;
  padding: 30px;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.contact-links {
  display: grid;
  gap: 12px;
}

.contact-card a {
  font-size: 1.18rem;
  font-weight: 800;
  text-decoration: none;
}

.contact-card a:hover,
.contact-card a:focus-visible {
  color: var(--teal);
}

address {
  color: var(--muted);
  font-style: normal;
  line-height: 1.7;
}

.contact-form {
  align-content: start;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(18, 32, 28, 0.16);
  border-radius: 8px;
  background: #f9faf7;
  color: var(--ink);
  font: inherit;
  line-height: 1.45;
  outline: none;
  padding: 13px 14px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.contact-form textarea {
  min-height: 118px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.form-button {
  width: 100%;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.form-messages {
  display: grid;
  gap: 8px;
}

.form-message {
  margin: 0;
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 800;
  line-height: 1.45;
}

.form-message.success {
  background: rgba(15, 118, 110, 0.12);
  color: var(--teal-dark);
}

.form-message.error {
  background: rgba(217, 108, 79, 0.14);
  color: #8f321c;
}

.admin-live-status {
  position: fixed;
  right: 24px;
  bottom: 22px;
  z-index: 120;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid rgba(18, 32, 28, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 40px rgba(18, 32, 28, 0.16);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 900;
  opacity: 0;
  padding: 8px 14px;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease, background 160ms ease, color 160ms ease;
  backdrop-filter: blur(14px);
}

.admin-live-status.show {
  opacity: 1;
  transform: translateY(0);
}

.admin-live-status[data-state="saving"] {
  background: rgba(255, 247, 222, 0.94);
}

.admin-live-status[data-state="saved"] {
  border-color: rgba(15, 118, 110, 0.24);
  background: rgba(235, 248, 244, 0.94);
  color: var(--teal-dark);
}

.admin-live-status[data-state="error"] {
  border-color: rgba(160, 34, 34, 0.24);
  background: rgba(255, 241, 241, 0.96);
  color: #8b1717;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 44px;
  background: #0c1512;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 700;
}

.admin-page {
  background: #eef2ef;
  color: var(--ink);
}

.admin-page h1,
.admin-page h2,
.admin-page h3,
.admin-page p {
  margin-top: 0;
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 34px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 246, 240, 0.94);
  backdrop-filter: blur(16px);
}

.admin-header h1 {
  margin-bottom: 0;
  font-size: 1.7rem;
}

.admin-user-line {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.admin-eyebrow {
  margin-bottom: 6px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-link,
.admin-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 11px 16px;
  text-decoration: none;
}

.admin-link {
  background: rgba(18, 32, 28, 0.08);
  color: var(--ink);
}

.admin-button.secondary {
  background: rgba(15, 118, 110, 0.12);
  color: var(--teal-dark);
}

.admin-shell {
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 28px 34px 112px;
}

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

.admin-page[data-admin-page="settings"] .admin-grid {
  padding-bottom: 116px;
}

.admin-card {
  display: grid;
  gap: 16px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(18, 32, 28, 0.08);
  padding: 22px;
}

.admin-card h2 {
  font-size: 1.25rem;
}

.admin-card h3 {
  font-size: 1rem;
}

.admin-wide {
  grid-column: 1 / -1;
}

.admin-card label,
.admin-auth label {
  display: grid;
  gap: 7px;
  color: #24332e;
  font-weight: 800;
}

.admin-card input,
.admin-card select,
.admin-card textarea,
.admin-auth input {
  width: 100%;
  border: 1px solid rgba(18, 32, 28, 0.16);
  border-radius: 8px;
  background: #f9faf7;
  color: var(--ink);
  font: inherit;
  line-height: 1.45;
  outline: none;
  padding: 12px 13px;
}

.admin-card textarea {
  resize: vertical;
}

.admin-card input:focus,
.admin-card select:focus,
.admin-card textarea:focus,
.admin-auth input:focus {
  border-color: var(--teal);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

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

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

.admin-repeater.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-mini-card,
.field-setting,
.lead-item {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(18, 32, 28, 0.12);
  border-radius: 8px;
  background: #fbfcf8;
  padding: 16px;
}

.field-settings {
  display: grid;
  gap: 12px;
}

.form-builder {
  margin-top: 8px;
}

.form-field-row {
  grid-template-columns: minmax(190px, 1fr) minmax(150px, 180px);
  align-items: end;
  gap: 12px 14px;
}

.form-field-row label {
  min-width: 0;
}

.form-field-row .check-line {
  min-height: 44px;
  align-content: center;
  justify-content: flex-start;
  white-space: nowrap;
}

.form-field-remove,
.form-field-add {
  min-height: 44px;
}

.form-field-remove {
  justify-self: start;
  width: fit-content;
}

.form-field-add {
  margin-top: 12px;
  width: fit-content;
}

.form-field-row.is-deleted {
  display: none;
}

.check-line {
  display: flex !important;
  align-items: center;
  gap: 10px !important;
}

.check-line input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.leads-card {
  margin-bottom: 8px;
}

.leads-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.leads-heading h2,
.leads-heading p,
.lead-item p {
  margin-bottom: 0;
}

.leads-heading p,
.empty-state,
.lead-item time {
  color: var(--muted);
}

.leads-list {
  display: grid;
  gap: 12px;
}

.lead-item time {
  font-size: 0.88rem;
  font-weight: 800;
}

.admin-messages {
  margin-bottom: 18px;
}

.admin-save-bar {
  position: fixed;
  right: 34px;
  bottom: 24px;
  z-index: 40;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  background: rgba(247, 246, 240, 0.84);
  box-shadow: 0 18px 50px rgba(18, 32, 28, 0.18);
  padding: 10px;
  backdrop-filter: blur(16px);
}

.admin-save-bar .admin-button {
  white-space: nowrap;
}

.admin-auth {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 24px;
}

.login-page {
  min-height: 100svh;
  overflow: hidden;
  background: #030504;
}

.login-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #000000 url("assets/logos/logo-reference-clean-dark-vector.svg") center / min(92vw, 1080px) auto no-repeat;
  opacity: 1;
  pointer-events: none;
}

.login-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 50%, transparent 0, rgba(0, 0, 0, 0.15) 38%, rgba(0, 0, 0, 0.74) 76%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), #000000 96%);
  pointer-events: none;
}

.login-page .admin-auth {
  position: relative;
  z-index: 1;
}

.login-card {
  width: min(440px, 100%);
}

.clean-login {
  gap: 14px;
  padding: 24px;
}

.clean-login input,
.clean-login .admin-button {
  min-height: 50px;
}

.clean-login .admin-button {
  width: 100%;
}

.login-back {
  display: inline-flex;
  width: fit-content;
  min-height: 36px;
  align-items: center;
  margin-bottom: 6px;
  color: #6bb6ff;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.login-back:hover,
.login-back:focus-visible {
  color: #ffffff;
}

.login-card h1 {
  margin-bottom: 10px;
  font-size: 2rem;
}

.security-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

@media (max-width: 900px) {
  :root {
    --header-height: 112px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 12px 20px;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav a {
    padding: 10px 12px;
    font-size: 0.94rem;
  }

  .nav-login {
    display: inline-flex;
    order: -1;
    margin-left: 0;
  }

  .hero {
    min-height: min(650px, calc(100svh - 78px));
    padding: 138px 20px 58px;
    background:
      radial-gradient(circle at 86% 34%, rgba(214, 148, 47, 0.16), rgba(214, 148, 47, 0) 36%),
      linear-gradient(135deg, #ffffff 0%, #f6f4ee 58%, #ece7da 100%);
  }

  .hero::before {
    top: 37%;
    right: -62px;
    width: 260px;
    opacity: 0.07;
  }

  .hero::after {
    right: 20px;
    bottom: 30px;
    left: 20px;
  }

  .hero-content {
    width: calc(100vw - 40px);
  }

  h1 {
    font-size: 2.45rem;
    line-height: 1.08;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-text,
  .lead-stack p,
  .contact-lead {
    font-size: 1.04rem;
  }

  .section {
    padding: 72px 20px;
  }

  .contacts-section {
    padding-top: 42px;
  }

  .two-column,
  .contact-layout,
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .sticky-note {
    position: static;
  }

  .admin-header,
  .admin-row,
  .admin-grid,
  .admin-repeater,
  .admin-repeater.four {
    grid-template-columns: 1fr;
  }

  .admin-header {
    display: grid;
    padding: 16px 20px;
  }

  .admin-shell {
    padding: 20px 20px 104px;
  }

  .admin-save-bar {
    right: 20px;
    bottom: 18px;
    left: 20px;
  }

  .admin-save-bar .admin-button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  :root {
    --header-height: 104px;
  }

  .site-header {
    padding: 12px 16px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .nav {
    justify-content: flex-start;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    flex: 0 0 auto;
    padding: 8px 8px;
    font-size: 0.84rem;
  }

  h1 {
    font-size: 1.92rem;
  }

  h2 {
    font-size: 1.72rem;
  }

  .button {
    width: 100%;
  }

  .benefit-card {
    min-height: auto;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 24px;
  }

  .footer {
    padding: 22px 20px;
  }
}

.admin-menu-state {
  position: fixed;
  opacity: 0;
  pointer-events: none;
}

.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 80;
  display: flex;
  width: 260px;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: #10201b;
  color: #ffffff;
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-sidebar-brand img {
  width: 42px;
  height: 42px;
}

.admin-sidebar-brand strong,
.admin-sidebar-brand span {
  display: block;
}

.admin-sidebar-brand span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
  font-weight: 800;
}

.admin-nav {
  display: grid;
  gap: 6px;
  padding: 16px 12px;
}

.admin-nav-link {
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 900;
  padding: 12px 14px;
  text-decoration: none;
}

.admin-nav-link:hover,
.admin-nav-link:focus-visible,
.admin-nav-link.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.admin-sidebar-footer {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-sidebar-footer span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 900;
}

.admin-sidebar-footer button {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.admin-menu-overlay {
  display: none;
}

.admin-main {
  min-height: 100svh;
  margin-left: 260px;
  padding: 22px 24px 96px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.admin-topbar h1 {
  margin: 0;
  font-size: 1.85rem;
}

.admin-menu-toggle {
  display: none;
}

.admin-panel,
.admin-table-panel,
.admin-stat {
  border: 1px solid rgba(18, 32, 28, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(18, 32, 28, 0.06);
}

.admin-panel {
  margin-bottom: 16px;
  padding: 18px;
}

.admin-panel h2,
.admin-panel p {
  margin-top: 0;
}

.admin-panel > h2 {
  margin-bottom: 12px;
  font-size: 1.18rem;
  line-height: 1.2;
}

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

.admin-panel-head h2 {
  margin-bottom: 0;
  font-size: 1.22rem;
}

.admin-small-link {
  color: var(--teal-dark);
  font-weight: 900;
  text-decoration: none;
}

.admin-pill {
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--teal-dark);
  font-size: 0.86rem;
  font-weight: 900;
  padding: 8px 11px;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.admin-stat {
  padding: 16px;
}

.admin-stat span,
.admin-mini-row span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.admin-stat strong {
  display: block;
  margin-top: 8px;
  font-size: 1.8rem;
}

.admin-stat.compact strong {
  font-size: 1.3rem;
}

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

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

.admin-mini-row,
.admin-metric-list span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(18, 32, 28, 0.1);
  border-radius: 8px;
  background: #f8faf6;
  padding: 12px;
}

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

.admin-form-grid,
.admin-filter-bar {
  display: grid;
  gap: 12px;
}

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

.admin-form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
}

.admin-form-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
}

.candidate-create-form {
  grid-template-columns: repeat(6, minmax(130px, 1fr));
}

.admin-filter-bar {
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}

.admin-filter-bar input[name="q"] {
  grid-column: span 2;
  min-width: min(100%, 260px);
}

.admin-form-grid label,
.admin-filter-bar label {
  display: grid;
  gap: 7px;
  color: #25342f;
  font-weight: 900;
}

.admin-form-grid input,
.admin-form-grid select,
.admin-form-grid textarea,
.admin-filter-bar input,
.admin-filter-bar select,
.hr-table input,
.hr-table select {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(18, 32, 28, 0.16);
  border-radius: 6px;
  background: #fbfcf8;
  color: var(--ink);
  font: inherit;
  outline: none;
  padding: 8px 10px;
}

.admin-form-grid button,
.admin-filter-bar button,
.admin-filter-bar a {
  align-self: end;
}

.admin-field-wide {
  grid-column: span 2;
}

.admin-table-panel {
  overflow: hidden;
}

.admin-table-panel.is-loading,
[data-live-region="calendar"].is-loading,
[data-live-region="users-table"].is-loading {
  opacity: 0.72;
  transition: opacity 140ms ease;
}

.is-saving input,
.is-saving select,
.is-saving textarea {
  border-color: rgba(214, 148, 47, 0.34) !important;
}

.is-saved input,
.is-saved select,
.is-saved textarea {
  border-color: rgba(15, 118, 110, 0.34) !important;
}

.has-save-error input,
.has-save-error select,
.has-save-error textarea {
  border-color: rgba(160, 34, 34, 0.44) !important;
}

.admin-table-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(18, 32, 28, 0.12);
  background: #f8faf6;
  color: var(--muted);
  font-weight: 800;
}

.admin-table-summary strong {
  color: var(--ink);
  font-size: 1.25rem;
}

.admin-table-scroll {
  max-height: calc(100svh - 330px);
  overflow: auto;
}

.hr-table {
  width: 100%;
  min-width: 1260px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.hr-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #1f5b82;
  color: #ffffff;
  font-size: 0.82rem;
  text-align: left;
  white-space: nowrap;
}

.hr-table th,
.hr-table td {
  border: 1px solid rgba(18, 32, 28, 0.2);
  padding: 6px;
  vertical-align: middle;
}

.hr-table th:first-child,
.hr-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
}

.hr-table th:first-child {
  z-index: 5;
}

.hr-table td:first-child {
  background: inherit;
}

.hr-table tbody tr:nth-child(even) {
  background: #f3f6f5;
}

.hr-table tbody tr:hover {
  background: #fff7de;
}

.hr-table input,
.hr-table select {
  min-height: 30px;
  border-color: transparent;
  background: transparent;
  padding: 4px 7px;
}

.hr-table input:focus,
.hr-table select:focus {
  border-color: var(--teal);
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.12);
}

.date-cell {
  color: #1d3442;
  font-weight: 900;
  white-space: nowrap;
}

.pill-select {
  border-radius: 999px !important;
  font-weight: 900;
}

.hr-pill {
  background: #ffd1d1 !important;
  color: #9c1010 !important;
}

.position-pill {
  background: #e7eef7 !important;
}

.source-pill {
  background: #ddd0ff !important;
  color: #5b2aa0 !important;
}

.status-pill {
  background: #ddeed2 !important;
}

.status-rejected,
.status-skip,
.status-no_show {
  background: #ffd5d5 !important;
  color: #9c1717 !important;
}

.status-scheduled,
.status-work {
  background: #d8ecd8 !important;
  color: #176b32 !important;
}

.comment-input {
  min-width: 230px;
}

.admin-save-row {
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  background: var(--ink);
  color: #ffffff;
  cursor: pointer;
  font-weight: 900;
  padding: 4px 9px;
}

.admin-row-link,
.admin-pagination a {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(18, 32, 28, 0.16);
  border-radius: 6px;
  color: var(--ink);
  font-weight: 900;
  padding: 4px 9px;
  text-decoration: none;
  white-space: nowrap;
}

.admin-row-link:hover,
.admin-row-link:focus-visible,
.admin-pagination a.active,
.admin-pagination a:hover {
  background: var(--ink);
  color: #ffffff;
}

.admin-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid rgba(18, 32, 28, 0.12);
  background: #ffffff;
}

.admin-button.ghost {
  border: 1px solid rgba(18, 32, 28, 0.18);
  background: transparent;
  color: var(--ink);
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.calendar-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.calendar-controls select {
  min-height: 44px;
  border: 1px solid rgba(18, 32, 28, 0.16);
  border-radius: 8px;
  background: #fbfcf8;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  padding: 9px 12px;
}

.calendar-week-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.calendar-day-card {
  display: grid;
  min-height: 150px;
  align-content: start;
  gap: 6px;
  border: 1px solid rgba(18, 32, 28, 0.12);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 13px;
  text-decoration: none;
}

.calendar-day-card.active {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.calendar-day-card span {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.calendar-day-card strong {
  font-size: 1.2rem;
}

.calendar-day-card em {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  background: #e8f1ed;
  font-style: normal;
  font-weight: 900;
}

.calendar-day-card small {
  overflow: hidden;
  color: var(--muted);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-day-panel {
  margin-bottom: 0;
}

.calendar-agenda {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.calendar-agenda-item {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(18, 32, 28, 0.12);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: #f8faf6;
  color: var(--ink);
  padding: 12px;
  text-decoration: none;
}

.calendar-agenda-item time {
  color: var(--teal-dark);
  font-weight: 900;
}

.calendar-agenda-item span,
.calendar-agenda-item small {
  color: var(--muted);
}

.calendar-day h2 {
  margin-bottom: 14px;
  font-size: 1.2rem;
}

.schedule-grid {
  display: grid;
  overflow: auto;
  border: 1px solid rgba(18, 32, 28, 0.16);
}

.compact-schedule {
  max-height: 560px;
}

.schedule-cols-1 {
  grid-template-columns: 82px repeat(1, minmax(180px, 1fr));
}

.schedule-cols-2 {
  grid-template-columns: 82px repeat(2, minmax(180px, 1fr));
}

.schedule-cols-3 {
  grid-template-columns: 82px repeat(3, minmax(180px, 1fr));
}

.schedule-cols-4 {
  grid-template-columns: 82px repeat(4, minmax(180px, 1fr));
}

.schedule-cols-5 {
  grid-template-columns: 82px repeat(5, minmax(180px, 1fr));
}

.schedule-cols-6 {
  grid-template-columns: 82px repeat(6, minmax(180px, 1fr));
}

.schedule-cols-7 {
  grid-template-columns: 82px repeat(7, minmax(180px, 1fr));
}

.schedule-cols-8 {
  grid-template-columns: 82px repeat(8, minmax(180px, 1fr));
}

.schedule-cols-9 {
  grid-template-columns: 82px repeat(9, minmax(180px, 1fr));
}

.schedule-cols-10 {
  grid-template-columns: 82px repeat(10, minmax(180px, 1fr));
}

.schedule-cols-11 {
  grid-template-columns: 82px repeat(11, minmax(180px, 1fr));
}

.schedule-cols-12 {
  grid-template-columns: 82px repeat(12, minmax(180px, 1fr));
}

.schedule-head,
.schedule-time,
.schedule-cell {
  min-height: 42px;
  border-right: 1px solid rgba(18, 32, 28, 0.14);
  border-bottom: 1px solid rgba(18, 32, 28, 0.14);
  padding: 8px;
}

.schedule-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #1f5b82;
  color: #ffffff;
  font-weight: 900;
}

.time-head,
.schedule-time {
  position: sticky;
  left: 0;
  z-index: 3;
}

.schedule-time {
  background: #f5f7f2;
  color: var(--muted);
  font-weight: 900;
}

.schedule-cell {
  min-height: 58px;
  background: #ffffff;
}

.schedule-event {
  display: grid;
  gap: 3px;
  margin-bottom: 6px;
  border-left: 4px solid var(--teal);
  border-radius: 6px;
  background: #edf7f4;
  color: var(--ink);
  line-height: 1.25;
  padding: 7px;
  text-decoration: none;
}

.schedule-event span,
.schedule-event small {
  color: var(--muted);
}

.table-check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-check input {
  width: 18px;
  min-height: 18px;
}

.users-table {
  min-width: 920px;
}

.lead-detail-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-field-full {
  grid-column: 1 / -1;
}

.admin-page {
  background:
    linear-gradient(180deg, rgba(245, 248, 244, 0.96), rgba(238, 244, 240, 0.96)),
    #eef4f0;
}

.admin-main {
  max-width: 1540px;
}

.admin-topbar {
  min-height: 64px;
  margin-bottom: 14px;
}

.admin-eyebrow {
  margin-bottom: 5px;
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-quick-create,
.admin-filter-panel,
.admin-leads-table,
.calendar-header-panel,
.calendar-day-panel {
  border-color: rgba(18, 32, 28, 0.1);
  box-shadow: 0 14px 34px rgba(18, 32, 28, 0.07);
}

.admin-quick-create {
  padding: 16px 18px 18px;
}

.admin-quick-create .admin-panel-head,
.admin-filter-panel {
  margin-bottom: 12px;
}

.admin-quick-create .admin-panel-head h2 {
  font-size: 1.08rem;
}

.admin-quick-create .admin-pill {
  background: #e6f0ed;
  color: #0f4f46;
  font-size: 0.78rem;
  padding: 7px 10px;
}

.candidate-create-form {
  gap: 10px 12px;
}

.candidate-create-form label span,
.lead-detail-form label span,
.admin-filter-bar label span {
  font-size: 0.78rem;
}

.candidate-create-form input,
.candidate-create-form select,
.admin-filter-bar input,
.admin-filter-bar select {
  min-height: 36px;
  border-color: rgba(18, 32, 28, 0.14);
  background: #ffffff;
}

.candidate-create-form .admin-button {
  min-height: 38px;
}

.admin-filter-panel {
  position: sticky;
  top: 10px;
  z-index: 20;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.admin-filter-bar {
  gap: 10px;
  grid-template-columns: minmax(260px, 2fr) repeat(auto-fit, minmax(118px, 1fr));
}

.admin-filter-bar input[name="q"] {
  grid-column: auto;
}

.admin-filter-bar .admin-button,
.admin-filter-bar a {
  min-height: 36px;
  padding: 8px 12px;
}

.admin-table-summary {
  min-height: 46px;
  background: #fbfcf8;
}

.admin-table-summary strong {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: #10201b;
  color: #ffffff;
  font-size: 1rem;
}

.admin-table-scroll {
  max-height: calc(100svh - 290px);
}

.hr-table {
  min-width: 1340px;
  font-size: 0.82rem;
}

.hr-table th {
  background: #174664;
  font-size: 0.76rem;
  line-height: 1.15;
  padding: 8px 7px;
}

.hr-table th,
.hr-table td {
  border-color: rgba(18, 32, 28, 0.14);
}

.hr-table td {
  height: 42px;
  padding: 4px 6px;
}

.hr-table tbody tr:nth-child(even) {
  background: #f7faf8;
}

.hr-table tbody tr:hover {
  background: #fff9e8;
}

.hr-table input,
.hr-table select {
  min-height: 28px;
  border-radius: 5px;
  font-size: 0.82rem;
}

.pill-select {
  min-width: 74px;
  padding-inline: 9px !important;
}

.hr-pill {
  background: #ffe1e1 !important;
  color: #9b1c1c !important;
}

.source-pill {
  background: #eadfff !important;
  color: #5a2b9b !important;
}

.position-pill {
  background: #e7eef6 !important;
  color: #173851 !important;
}

.status-pill {
  background: #e6f3dc !important;
  color: #2d5b20 !important;
}

.comment-input {
  min-width: 260px;
}

.admin-save-row {
  background: #10201b;
  font-size: 0.76rem;
}

.calendar-header-panel {
  padding: 18px;
}

.calendar-header-panel h2 {
  color: #2f3e3a;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1;
}

.calendar-controls .admin-button,
.calendar-controls select {
  min-height: 40px;
}

.calendar-stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.calendar-stat-grid .admin-stat {
  padding: 13px 15px;
}

.calendar-stat-grid .admin-stat strong {
  font-size: 1.35rem;
}

.calendar-week-compact {
  gap: 8px;
}

.calendar-week-compact .calendar-day-card {
  min-height: 116px;
  gap: 5px;
  padding: 12px;
}

.calendar-week-compact .calendar-day-card strong {
  font-size: 1.05rem;
}

.calendar-week-compact .calendar-day-card em {
  width: 28px;
  height: 28px;
  background: #edf4f1;
  font-size: 0.86rem;
}

.calendar-day-panel {
  padding: 18px;
}

.calendar-day-panel .admin-panel-head {
  margin-bottom: 12px;
}

.calendar-agenda {
  margin-bottom: 12px;
}

.schedule-grid {
  border-color: rgba(18, 32, 28, 0.12);
  border-radius: 8px;
  background: #ffffff;
}

.compact-schedule {
  max-height: calc(100svh - 390px);
  min-height: 320px;
}

.schedule-head {
  background: #174664;
  font-size: 0.8rem;
  padding: 8px 10px;
}

.schedule-time {
  background: #f8faf7;
  color: #6b756f;
  font-size: 0.82rem;
}

.schedule-cell {
  min-height: 48px;
  background: #ffffff;
}

.schedule-event {
  border-left-color: var(--teal);
  background: #eef8f5;
  font-size: 0.78rem;
}

@media (max-width: 1100px) {
  .admin-stat-grid,
  .admin-panel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-form-grid,
  .admin-form-grid.three,
  .admin-form-grid.four,
  .lead-detail-form,
  .candidate-create-form,
  .admin-filter-bar,
  .form-field-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calendar-week-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform 180ms ease;
  }

  .admin-menu-state:checked ~ .admin-sidebar {
    transform: translateX(0);
  }

  .admin-menu-state:checked ~ .admin-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: block;
    background: rgba(0, 0, 0, 0.35);
  }

  .admin-main {
    margin-left: 0;
    padding: 16px 14px 88px;
  }

  .admin-menu-toggle {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    border-radius: 8px;
    background: var(--ink);
    color: #ffffff;
    cursor: pointer;
    font-weight: 900;
    padding: 8px 12px;
  }

  .admin-topbar h1 {
    font-size: 1.35rem;
  }

  .admin-stat-grid,
  .admin-panel-grid,
  .admin-form-grid,
  .admin-form-grid.three,
  .admin-form-grid.four,
  .lead-detail-form,
  .candidate-create-form,
  .admin-filter-bar,
  .form-field-row {
    grid-template-columns: 1fr;
  }

  .admin-field-wide {
    grid-column: auto;
  }

  .admin-filter-bar input[name="q"] {
    grid-column: auto;
  }

  .calendar-toolbar,
  .admin-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-header-actions {
    width: 100%;
  }

  .admin-header-actions .admin-button {
    flex: 1;
  }

  .admin-table-scroll {
    max-height: none;
  }

  .calendar-week-strip {
    grid-template-columns: 1fr;
  }

  .calendar-controls {
    width: 100%;
  }

  .calendar-controls select,
  .calendar-controls .admin-button {
    flex: 1 1 140px;
  }
}

body.login-page {
  background: #000000;
}

body.login-page::before {
  background: #000000 url("assets/logos/logo-reference-clean-dark-vector.svg") center / min(92vw, 1080px) auto no-repeat;
  opacity: 1;
}

body.login-page::after {
  background: none;
}
