:root {
  --blue: #2e3598;
  --blue-dark: #1f266f;
  --blue-soft: #eef0ff;
  --yellow: #f3c316;
  --yellow-soft: #fff7d6;
  --ink: #171a2b;
  --muted: #66708a;
  --line: #e5e9f5;
  --bg: #f7f8fc;
  --card: #ffffff;
  --success: #157347;
  --warning: #a06000;
  --danger: #b42318;
  --radius: 24px;
  --radius-sm: 16px;
  --shadow: 0 18px 46px rgba(24, 32, 76, 0.08);
  --container: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fbfcff 0%, #f4f6fb 100%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
.container { width: min(100% - 32px, var(--container)); margin: 0 auto; }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; }
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229, 233, 245, 0.9);
}
.header-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 92px;
}
.site-logo img { width: 210px; max-width: 100%; }
.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.site-nav a {
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--muted);
  transition: 0.2s ease;
}
.site-nav a:hover,
.site-nav a.is-current {
  color: var(--blue-dark);
  background: var(--blue-soft);
}
.header-utility {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: 0.2s ease;
  cursor: pointer;
}
.button:hover { transform: translateY(-1px); }
.button.primary {
  background: linear-gradient(135deg, var(--yellow), #f0b800);
  color: #1f1f1f;
  box-shadow: 0 10px 26px rgba(243, 195, 22, 0.25);
}
.button.secondary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 26px rgba(46, 53, 152, 0.18);
}
.button.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--blue-dark);
}
.button.small { min-height: 42px; padding: 0 14px; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  width: 48px;
  height: 48px;
  justify-self: end;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--blue-dark);
}
.flash {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 18px;
  font-weight: 600;
}
.flash-success { background: #e8f7ee; color: #0f6f43; }
.flash-error { background: #fdecec; color: #a31919; }
.flash-warning { background: #fff4dd; color: #8a5700; }
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--soft { background: linear-gradient(180deg, rgba(46,53,152,0.03) 0%, rgba(46,53,152,0.01) 100%); }
.hero {
  padding: 84px 0 70px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 30px;
  align-items: stretch;
}
.hero-copy,
.hero-panel,
.card {
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(229, 233, 245, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-copy {
  padding: 44px;
  position: relative;
  overflow: hidden;
}
.hero-copy::before {
  content: '';
  position: absolute;
  right: -80px;
  top: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(243,195,22,0.18) 0%, rgba(243,195,22,0) 70%);
}
.hero-panel {
  padding: 34px;
  background: linear-gradient(180deg, #242d87 0%, #2f38a1 100%);
  color: #fff;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--blue);
}
.hero-copy .eyebrow { color: var(--blue-dark); }
.hero-panel .eyebrow { color: rgba(255,255,255,0.75); }
.hero h1,
.section-heading h1,
.section-heading h2,
.page-head h1,
.auth-card h1,
.account-head h1 {
  margin: 0 0 16px;
  line-height: 1.03;
}
.hero h1 { font-size: clamp(38px, 5vw, 62px); max-width: 11ch; }
.page-head h1, .section-heading h2, .auth-card h1, .account-head h1 { font-size: clamp(28px, 3vw, 42px); }
.hero p,
.section-heading p,
.card p,
.page-head p,
.auth-card p,
.account-subtitle { color: var(--muted); line-height: 1.7; }
.hero-actions,
.form-actions,
.account-actions,
.inline-actions,
.badge-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-highlights,
.stats-grid,
.feature-grid,
.card-grid,
.footer-grid,
.account-grid,
.split-grid,
.info-grid,
.contact-grid {
  display: grid;
  gap: 18px;
}
.hero-highlights { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 26px; }
.hero-highlights article,
.stats-grid article {
  padding: 18px;
  border-radius: 22px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.hero-highlights strong,
.stats-grid strong { display: block; font-size: 22px; }
.hero-highlights span,
.stats-grid span { color: var(--muted); font-size: 14px; }
.card { padding: 30px; }
.card-grid.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid.grid-2, .split-grid, .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-card,
.service-card,
.material-card,
.contact-card,
.auth-card,
.account-card,
.info-card { height: 100%; }
.panel-list,
.timeline,
.document-list,
.history-list,
.simple-list { display: grid; gap: 14px; }
.panel-list article,
.timeline li,
.document-item,
.history-item,
.simple-list li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.16);
}
.hero-panel .panel-list article:last-child,
.timeline li:last-child,
.document-item:last-child,
.history-item:last-child,
.simple-list li:last-child { border-bottom: 0; }
.hero-panel strong { display: block; margin-bottom: 4px; }
.section-heading { max-width: 760px; margin: 0 auto 34px; text-align: center; }
.section-heading.left { text-align: left; margin: 0 0 24px; }
.page-head {
  padding: 72px 0 28px;
}
.page-head .container > .card {
  padding: 38px;
  background: linear-gradient(135deg, rgba(46,53,152,0.98), rgba(30,38,111,0.98));
  color: #fff;
}
.page-head .eyebrow,
.page-head p { color: rgba(255,255,255,0.78); }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: var(--yellow-soft);
  color: #7f5a00;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}
.status-neutral { background: #eef2f7; color: #49566f; }
.status-info { background: #e8ecff; color: #3342a2; }
.status-success { background: #e6f5ee; color: #127148; }
.status-warning { background: #fff1db; color: #a06100; }
.status-danger { background: #fde8e8; color: #b42318; }
.table-wrap { overflow: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th,
.data-table td {
  padding: 14px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.data-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.data-table tr:last-child td { border-bottom: 0; }
.doc-icons { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.doc-icon,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-weight: 700;
}
.doc-icon:hover,
.icon-button:hover { background: #e2e7ff; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.form-stack { display: grid; gap: 16px; }
.form-span-2 { grid-column: 1 / -1; }
label { display: block; }
label span {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
}
input,
textarea,
select {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; }
input:focus,
textarea:focus,
select:focus {
  outline: 0;
  border-color: rgba(46,53,152,0.42);
  box-shadow: 0 0 0 4px rgba(46,53,152,0.10);
}
.required-mark { color: var(--danger); }
.checkbox-row { display: flex; gap: 12px; align-items: flex-start; }
.checkbox-row input { width: 18px; min-height: 18px; margin-top: 2px; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 96px; }
.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 700;
  cursor: pointer;
  min-height: auto;
  padding: 0;
}
.password-toggle.is-active { color: var(--success); }
.material-custom-row,
.vehicle-new-row { display: none; }
.material-custom-row.is-visible,
.vehicle-new-row.is-visible { display: block; }
.auth-wrap,
.account-wrap { max-width: 1040px; margin: 0 auto; }
.auth-card,
.account-card { padding: 34px; }
.account-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}
.account-grid { grid-template-columns: 1fr; }
.account-stack { display: grid; gap: 18px; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.metrics-grid article {
  padding: 18px;
  border-radius: 22px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.metrics-grid strong { display: block; font-size: 28px; }
.metrics-grid span { color: var(--muted); }
.inline-note {
  padding: 16px 18px;
  border-radius: 18px;
  background: #f2f5ff;
  border: 1px solid #dfe5ff;
}
.muted { color: var(--muted); }
.section-note { color: var(--muted); margin-top: 12px; }
.footer-grid {
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  padding: 34px 0 44px;
}
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.9);
}
.site-footer h4 { margin: 0 0 12px; }
.site-footer p { margin: 0 0 8px; color: var(--muted); }
.footer-brand img { width: 190px; margin-bottom: 16px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.empty-state {
  padding: 20px;
  border-radius: 20px;
  background: var(--bg);
  border: 1px dashed var(--line);
  color: var(--muted);
}
@media (max-width: 1120px) {
  .hero-grid,
  .card-grid.grid-3,
  .card-grid.grid-2,
  .split-grid,
  .contact-grid,
  .footer-grid,
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .header-bar { grid-template-columns: auto auto auto; }
  .site-nav { justify-content: flex-start; }
}
@media (max-width: 900px) {
  .header-bar { grid-template-columns: auto auto; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    padding: 16px;
    border-radius: 24px;
    background: rgba(255,255,255,0.98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }
  .site-nav.is-open { display: flex; }
  .header-utility {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-bottom: 18px;
  }
}
@media (max-width: 760px) {
  .section,
  .hero,
  .page-head { padding: 56px 0; }
  .hero-grid,
  .hero-highlights,
  .card-grid.grid-3,
  .card-grid.grid-2,
  .split-grid,
  .contact-grid,
  .footer-grid,
  .metrics-grid,
  .form-grid { grid-template-columns: 1fr; }
  .form-span-2 { grid-column: auto; }
  .hero-copy,
  .hero-panel,
  .card,
  .auth-card,
  .account-card,
  .page-head .container > .card { padding: 24px; }
  .account-head { flex-direction: column; }
  .site-logo img { width: 160px; }
  .data-table th, .data-table td { white-space: nowrap; }
}
