.catalog-page .site-header {
  grid-template-columns: minmax(240px, 340px) minmax(500px, 1fr) 316px;
}

.catalog-shell {
  width: var(--container);
  margin: 0 auto;
  padding: 30px 0 54px;
}

.catalog-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  min-height: 300px;
  padding: clamp(24px, 4vw, 44px);
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid rgba(115, 167, 230, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(5, 13, 22, 0.98) 0%, rgba(6, 18, 32, 0.88) 42%, rgba(7, 17, 29, 0.32) 70%, rgba(7, 17, 29, 0.72) 100%),
    url("assets/photos/hero-car-alpha.png") center right / min(900px, 72vw) auto no-repeat,
    linear-gradient(145deg, rgba(16, 38, 60, 0.9), rgba(7, 17, 29, 0.92));
  box-shadow: var(--shadow);
}

.catalog-intro h1 {
  max-width: 860px;
  margin-bottom: 14px;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.04;
}

.catalog-intro p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.catalog-source {
  min-width: 164px;
  padding: 11px 14px;
  color: var(--eyebrow);
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  border: 1px solid rgba(115, 167, 230, 0.28);
  border-radius: 8px;
  background: rgba(8, 24, 42, 0.74);
}

.catalog-search-panel,
.catalog-workspace,
.catalog-empty,
.vehicle-card,
.catalog-browser,
.oem-viewer {
  border: 1px solid rgba(115, 167, 230, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(16, 38, 60, 0.9), rgba(7, 17, 29, 0.92)),
    radial-gradient(circle at 94% 4%, rgba(31, 122, 242, 0.16), transparent 22rem);
  box-shadow: var(--shadow);
}

.catalog-search-panel {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 18px;
  margin-bottom: 18px;
}

.catalog-tabs {
  display: grid;
  gap: 8px;
}

.catalog-tabs button,
.catalog-link,
.catalog-ghost,
.group-card,
.unit-card,
.position-card,
.zoom button {
  font: inherit;
  cursor: pointer;
}

.catalog-tabs button {
  min-height: 48px;
  padding: 0 14px;
  color: var(--muted);
  text-align: left;
  font-weight: 800;
  border: 1px solid rgba(115, 167, 230, 0.18);
  border-radius: 8px;
  background: rgba(4, 11, 20, 0.38);
}

.catalog-tabs button.is-active {
  color: #fff;
  border-color: rgba(70, 168, 255, 0.7);
  background: rgba(31, 122, 242, 0.24);
}

.catalog-search {
  display: none;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.catalog-search.vehicle-select-form {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
}

.catalog-search.is-active {
  display: grid;
}

.catalog-search label {
  display: grid;
  gap: 9px;
  color: var(--eyebrow);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog-search input,
.catalog-search select {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  color: var(--text);
  font: inherit;
  font-size: 17px;
  border: 1px solid rgba(169, 205, 255, 0.24);
  border-radius: 8px;
  background: rgba(4, 11, 20, 0.72);
  outline: none;
}

.catalog-search input:focus,
.catalog-search select:focus {
  border-color: rgba(70, 168, 255, 0.82);
  box-shadow: 0 0 0 4px rgba(31, 122, 242, 0.18);
}

.catalog-workspace {
  min-height: 520px;
  padding: 18px;
}

.catalog-empty {
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 30px;
  text-align: center;
  color: var(--muted);
}

.catalog-empty h2 {
  margin-bottom: 10px;
  font-size: 28px;
}

.vehicle-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  margin-bottom: 14px;
}

.vehicle-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(81, 158, 255, 0.42);
  border-radius: 8px;
  background: rgba(31, 122, 242, 0.18);
}

.vehicle-icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.vehicle-card h2 {
  margin-bottom: 5px;
  font-size: 24px;
}

.vehicle-card p,
.viewer-title p,
.breadcrumb {
  margin: 0;
  color: var(--muted);
}

.catalog-ghost,
.catalog-link {
  color: var(--blue-soft);
  border: 0;
  background: transparent;
  font-weight: 800;
}

.catalog-ghost {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(70, 168, 255, 0.36);
  border-radius: 8px;
  background: rgba(4, 11, 20, 0.34);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 14px;
  font-size: 13px;
}

.viewer-title {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 16px;
}

.diagram-mode {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 42px;
  padding: 3px;
  border: 1px solid rgba(70, 168, 255, 0.28);
  border-radius: 8px;
  background: rgba(4, 11, 20, 0.48);
}

.mode-button {
  min-width: 84px;
  min-height: 34px;
  padding: 0 12px;
  color: var(--muted);
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.mode-button.is-active {
  color: #fff;
  background: #1676e8;
}

.mode-button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.viewer-title h2 {
  margin-bottom: 6px;
  font-size: clamp(24px, 3vw, 34px);
}

.garage-catalog {
  overflow: hidden;
  border: 1px solid rgba(115, 167, 230, 0.22);
  border-radius: 8px;
  background: #f6f8fa;
  color: #26313b;
  box-shadow: var(--shadow);
}

.garage-tabs {
  display: flex;
  gap: 26px;
  align-items: center;
  min-height: 58px;
  padding: 0 24px;
  overflow-x: auto;
  border-bottom: 1px solid #dfe6eb;
  background: #eef5f8;
  color: #6b8291;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
}

.garage-tabs span {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  border-bottom: 3px solid transparent;
}

.garage-tabs .is-active {
  color: #26313b;
  border-color: #d64a4d;
}

.garage-layout {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: 620px;
}

.garage-sidebar {
  padding: 20px 16px 24px;
  border-right: 1px solid #dfe6eb;
  background: #fbfcfd;
}

.garage-subtabs {
  display: flex;
  gap: 20px;
  margin: 0 0 22px;
  border-bottom: 1px solid #e3e8eb;
  color: #8294a0;
  font-size: 14px;
  white-space: nowrap;
}

.garage-subtabs b,
.garage-subtabs span {
  padding: 0 0 12px;
}

.garage-subtabs b {
  color: #3b464f;
  border-bottom: 2px solid #d64a4d;
}

.garage-search {
  position: relative;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.garage-search input {
  width: 100%;
  min-height: 46px;
  padding: 0 42px 0 14px;
  color: #26313b;
  font: inherit;
  border: 1px solid #d9e1e6;
  border-radius: 4px;
  background: #fff;
  outline: none;
}

.garage-search input:focus {
  border-color: #78a7bf;
  box-shadow: 0 0 0 3px rgba(71, 144, 183, 0.14);
}

.garage-search > span:not(.sr-only) {
  position: absolute;
  right: 14px;
  top: 7px;
  color: #33424d;
  font-size: 28px;
  line-height: 1;
}

.garage-hint {
  margin: 10px 0 18px;
  color: #91a0a8;
  font-size: 12px;
  line-height: 1.45;
}

.garage-tree {
  display: grid;
  gap: 2px;
}

.garage-tree-root,
.garage-tree-item {
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 36px;
  padding: 0 8px;
  color: #4e5c66;
  font: inherit;
  font-size: 14px;
  text-align: left;
}

.garage-tree-root {
  margin-bottom: 5px;
  color: #d45b5c;
  background: #f0f2f3;
  font-weight: 800;
}

.garage-tree-item {
  width: 100%;
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

.garage-tree-item:hover {
  color: #1f78a4;
  background: #edf6fa;
}

.garage-tree-chevron {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #6d7d87;
  border: 1px solid #cbd5db;
  border-radius: 4px;
  background: #fff;
  font-size: 20px;
  line-height: 1;
}

.garage-main {
  min-width: 0;
  padding: 22px;
  background: #fff;
}

.garage-main-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  padding: 0 2px 18px;
  border-bottom: 1px solid #e3e8eb;
}

.garage-caption {
  color: #7e8d96;
  font-size: 13px;
}

.garage-main-head h2 {
  margin-top: 5px;
  color: #26313b;
  font-size: 26px;
}

.garage-count {
  color: #83939e;
  font-size: 13px;
  white-space: nowrap;
}

.garage-group-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.garage-group-card {
  display: grid;
  grid-template-rows: auto minmax(150px, 1fr) auto;
  min-height: 245px;
  padding: 18px 16px 14px;
  color: #26313b;
  border: 0;
  border-right: 1px solid #e3e8eb;
  border-bottom: 1px solid #e3e8eb;
  border-radius: 0;
  background: #fff;
}

.garage-group-card:hover {
  z-index: 1;
  transform: none;
  border-color: #c9dce6;
  background: #f8fcfd;
  box-shadow: inset 0 0 0 2px #d8edf4;
}

.garage-group-card b {
  min-height: 42px;
  font-size: 18px;
  line-height: 1.25;
}

.garage-group-preview {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 10px;
}

.garage-group-preview img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.garage-placeholder {
  color: #c9d6dc;
  font-size: 76px;
  font-weight: 200;
  transform: rotate(-25deg);
}

.garage-group-card small {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding-top: 12px;
  color: #82939d;
  border-top: 1px solid #edf0f2;
}

.garage-group-card small i {
  color: #d64a4d;
  font-size: 18px;
  font-style: normal;
}

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

.group-card,
.unit-card {
  min-height: 118px;
  padding: 18px;
  color: var(--text);
  text-align: left;
  border: 1px solid rgba(115, 167, 230, 0.18);
  border-radius: 8px;
  background: rgba(4, 11, 20, 0.34);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.group-card:hover,
.unit-card:hover {
  transform: translateY(-2px);
  border-color: rgba(70, 168, 255, 0.72);
  background: rgba(31, 122, 242, 0.18);
}

.group-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--blue-soft);
  font-size: 26px;
  line-height: 1;
}

.catalog-browser {
  padding: 18px;
}

.group-card b,
.unit-card b {
  display: block;
  line-height: 1.35;
}

.group-card small,
.unit-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.unit-card {
  display: flex;
  gap: 14px;
  align-items: center;
}

.unit-card img {
  flex: 0 0 92px;
  width: 92px;
  height: 72px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.oem-viewer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  overflow: hidden;
}

.oem-canvas {
  min-width: 0;
  padding: 18px;
}

.viewport {
  position: relative;
  height: min(58vh, 620px);
  min-height: 430px;
  overflow: hidden;
  touch-action: none;
  border: 1px solid rgba(115, 167, 230, 0.18);
  border-radius: 8px;
  background: #fff;
  cursor: grab;
}

.viewport:has(.diagram-image.is-technical) {
  background-color: #071522;
  background-image:
    linear-gradient(rgba(78, 154, 205, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 154, 205, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 50% 45%, rgba(29, 111, 166, 0.16), transparent 62%);
  background-size: 28px 28px, 28px 28px, auto;
}

.viewport:has(.diagram-image.is-generated) {
  background: #06182b;
  height: auto;
  min-height: 0;
  aspect-ratio: 3 / 2;
}

.viewport:active {
  cursor: grabbing;
}

.stage {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
}

.diagram-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.diagram-image.is-technical {
  filter: invert(0.96) sepia(0.36) saturate(3.8) hue-rotate(165deg) brightness(1.12) contrast(1.5) drop-shadow(0 0 2px rgba(76, 180, 255, 0.58));
  mix-blend-mode: screen;
  opacity: 0.96;
}

.diagram-image.is-generated {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
  mix-blend-mode: normal;
  opacity: 1;
}

.hotspot {
  position: absolute;
  display: grid;
  place-items: center;
  padding: 0;
  color: transparent;
  border: 0;
  border-radius: 999px;
  background: transparent;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.hotspot.is-active,
.hotspot:hover {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.zoom {
  position: absolute;
  right: 12px;
  top: 12px;
  display: grid;
  gap: 6px;
}

.zoom button {
  width: 38px;
  height: 36px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  border: 1px solid rgba(31, 122, 242, 0.36);
  border-radius: 8px;
  background: rgba(7, 17, 29, 0.76);
}

.positions {
  max-height: calc(min(58vh, 620px) + 36px);
  overflow: auto;
  padding: 18px;
  border-left: 1px solid rgba(115, 167, 230, 0.18);
  background: rgba(4, 11, 20, 0.32);
}

.positions h3 {
  margin-bottom: 12px;
  color: var(--eyebrow);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.position-card {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  padding: 12px 8px;
  color: var(--text);
  text-align: left;
  border: 0;
  border-bottom: 1px solid rgba(115, 167, 230, 0.18);
  background: transparent;
}

.position-card.is-active,
.position-card:hover {
  background: rgba(31, 122, 242, 0.16);
}

.position-number {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 7px;
  border-radius: 6px;
  background: #1f7af2;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.position-card b {
  display: block;
  line-height: 1.35;
}

.position-card small {
  display: block;
  margin-top: 5px;
  color: var(--blue-soft);
  line-height: 1.35;
}

.catalog-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 130;
  max-width: min(520px, calc(100vw - 32px));
  padding: 12px 16px;
  color: #07335f;
  font-weight: 800;
  text-align: center;
  border-radius: 8px;
  background: #ecf7ff;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(26px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.catalog-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 1120px) {
  .catalog-page .site-header {
    grid-template-columns: 1fr auto;
  }

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

  .oem-viewer {
    grid-template-columns: 1fr;
  }

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

  .positions {
    max-height: none;
    border-left: 0;
    border-top: 1px solid rgba(115, 167, 230, 0.18);
  }
}

@media (max-width: 760px) {
  .catalog-shell {
    width: min(100% - 28px, 720px);
    padding: 22px 0 44px;
  }

  .catalog-intro,
  .catalog-search-panel,
  .catalog-search,
  .catalog-search.vehicle-select-form,
  .vehicle-card,
  .viewer-title {
    grid-template-columns: 1fr;
  }

  .catalog-source {
    justify-self: start;
  }

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

  .garage-sidebar {
    border-right: 0;
    border-bottom: 1px solid #dfe6eb;
  }

  .garage-tree {
    max-height: 260px;
    overflow: auto;
  }

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

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

  .group-grid,
  .unit-grid {
    grid-template-columns: 1fr;
  }

  .garage-group-grid {
    grid-template-columns: 1fr;
  }

  .garage-main {
    padding: 16px;
  }

  .unit-card img {
    flex-basis: 82px;
    width: 82px;
  }

  .viewport {
    min-height: 340px;
    height: 48vh;
  }

  .diagram-mode {
    align-self: stretch;
    justify-content: center;
  }
}

.garage-service-link,
.garage-maintenance-button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 42px;
  margin: 0 0 16px;
  padding: 0 10px;
  color: var(--blue-soft);
  font: inherit;
  font-weight: 800;
  text-align: left;
  border: 1px solid rgba(70, 168, 255, 0.22);
  border-radius: 6px;
  background: rgba(31, 122, 242, 0.1);
  cursor: pointer;
}

.garage-service-link:hover,
.garage-maintenance-button:hover {
  color: #fff;
  border-color: rgba(70, 168, 255, 0.65);
  background: rgba(31, 122, 242, 0.22);
}

.garage-service-link span {
  font-size: 20px;
  line-height: 1;
}

.garage-maintenance-button {
  width: auto;
  min-height: 34px;
  margin: 0;
  padding: 0 12px;
  font-size: 12px;
  text-align: center;
}

.maintenance-layout {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: 620px;
}

.maintenance-main {
  min-width: 0;
  padding: 22px;
  background: rgba(7, 17, 29, 0.46);
}

.maintenance-tree {
  display: grid;
  gap: 20px;
}

.maintenance-group h3 {
  margin: 0 0 7px;
  color: var(--blue-soft);
  font-size: 14px;
}

.maintenance-item {
  display: flex;
  gap: 9px;
  align-items: center;
  width: 100%;
  min-height: 34px;
  padding: 2px 0 2px 8px;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  text-align: left;
  border: 0;
  border-left: 1px solid rgba(115, 167, 230, 0.2);
  background: transparent;
  cursor: pointer;
}

.maintenance-item:hover {
  color: #fff;
  background: rgba(31, 122, 242, 0.14);
}

.maintenance-item:disabled {
  opacity: 0.5;
  cursor: wait;
}

.maintenance-item .garage-tree-chevron {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}

.maintenance-empty {
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.maintenance-empty h3 {
  margin: 12px 0 6px;
  color: var(--text);
}

.maintenance-empty p {
  max-width: 460px;
  margin: 0;
}

.maintenance-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #fff;
  border: 1px solid rgba(70, 168, 255, 0.5);
  border-radius: 50%;
  background: rgba(31, 122, 242, 0.24);
  font-size: 24px;
}

.maintenance-results {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.maintenance-detail {
  padding: 22px;
  border: 1px solid rgba(115, 167, 230, 0.22);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(16, 38, 60, 0.9), rgba(7, 17, 29, 0.94));
  box-shadow: var(--shadow);
}

.maintenance-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(115, 167, 230, 0.18);
}

.maintenance-detail-head h2 {
  margin: 7px 0 5px;
  color: var(--text);
  font-size: clamp(24px, 3vw, 34px);
}

.maintenance-detail-head p {
  margin: 0;
  color: var(--muted);
}

.maintenance-results h3 {
  margin: 0 0 4px;
  color: var(--text);
}

.maintenance-result {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid rgba(115, 167, 230, 0.2);
  border-radius: 7px;
  background: rgba(4, 11, 20, 0.35);
}

.maintenance-result small {
  color: var(--blue-soft);
}

.maintenance-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.maintenance-result-actions button {
  min-height: 32px;
  padding: 0 10px;
  color: var(--blue-soft);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(70, 168, 255, 0.3);
  border-radius: 5px;
  background: rgba(31, 122, 242, 0.1);
  cursor: pointer;
}

.maintenance-result-actions button:hover {
  color: #fff;
  border-color: rgba(70, 168, 255, 0.75);
  background: rgba(31, 122, 242, 0.25);
}

.group-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 8, 15, 0.72);
  backdrop-filter: blur(6px);
}

.group-menu {
  width: min(620px, 100%);
  max-height: min(720px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid rgba(70, 168, 255, 0.38);
  border-radius: 8px;
  background: linear-gradient(145deg, #102b45, #07111d);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

.group-menu-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  padding: 22px;
  border-bottom: 1px solid rgba(115, 167, 230, 0.2);
}

.group-menu-head span {
  color: var(--blue-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.group-menu-head h2 {
  margin: 7px 0 0;
  color: var(--text);
  font-size: 24px;
}

.group-menu-close {
  width: 36px;
  height: 36px;
  color: var(--muted);
  font-size: 26px;
  line-height: 1;
  border: 1px solid rgba(115, 167, 230, 0.25);
  border-radius: 50%;
  background: rgba(4, 11, 20, 0.4);
  cursor: pointer;
}

.group-menu-close:hover {
  color: #fff;
  border-color: rgba(70, 168, 255, 0.75);
}

.group-menu-list {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.group-menu-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 72px;
  padding: 10px;
  color: var(--text);
  text-align: left;
  border: 1px solid rgba(115, 167, 230, 0.16);
  border-radius: 7px;
  background: rgba(4, 11, 20, 0.38);
  cursor: pointer;
}

.group-menu-item:hover {
  border-color: rgba(70, 168, 255, 0.65);
  background: rgba(31, 122, 242, 0.18);
}

.group-menu-item img {
  width: 58px;
  height: 48px;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
}

.group-menu-item b,
.group-menu-item small {
  display: block;
}

.group-menu-item small {
  margin-top: 5px;
  color: var(--muted);
}

.group-menu-item i {
  color: var(--blue-soft);
  font-size: 24px;
  font-style: normal;
}

@media (max-width: 760px) {
  .maintenance-layout {
    grid-template-columns: 1fr;
  }

  .maintenance-layout .garage-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(115, 167, 230, 0.18);
  }

  .maintenance-main {
    padding: 16px;
  }

  .maintenance-detail {
    padding: 16px;
  }

  .maintenance-detail-head {
    align-items: start;
    flex-direction: column;
  }

  .group-menu-overlay {
    padding: 12px;
  }
}

/* Garage layout keeps the catalog's dark visual language. */
.garage-catalog {
  border-color: rgba(115, 167, 230, 0.22);
  background: linear-gradient(145deg, rgba(16, 38, 60, 0.9), rgba(7, 17, 29, 0.94));
  color: var(--text);
}

.garage-tabs {
  gap: 26px;
  min-height: 54px;
  padding: 0 22px;
  border-bottom-color: rgba(115, 167, 230, 0.18);
  background: rgba(4, 14, 25, 0.58);
  color: var(--muted);
}

.garage-tabs a {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  color: inherit;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

.garage-tabs a:hover,
.garage-tabs a.is-active {
  color: #fff;
  border-color: var(--blue);
}

.garage-layout {
  min-height: 620px;
}

.garage-sidebar {
  border-right-color: rgba(115, 167, 230, 0.18);
  background: rgba(4, 11, 20, 0.3);
}

.garage-subtabs {
  border-bottom-color: rgba(115, 167, 230, 0.18);
}

.garage-subtabs b,
.garage-subtabs button {
  padding: 0 0 12px;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  background: transparent;
}

.garage-subtabs b,
.garage-subtabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.garage-subtabs b,
.garage-subtabs button.is-active,
.garage-subtabs button:hover {
  color: #fff;
  border-bottom-color: var(--blue);
}

.garage-search input {
  color: var(--text);
  border-color: rgba(169, 205, 255, 0.24);
  background: rgba(4, 11, 20, 0.72);
}

.garage-search > span:not(.sr-only) {
  color: var(--blue-soft);
}

.garage-hint,
.garage-count,
.garage-caption {
  color: var(--muted);
}

.garage-tree-root {
  color: var(--blue-soft);
  background: rgba(31, 122, 242, 0.14);
}

.garage-tree-item {
  color: var(--muted);
}

.garage-tree-item:hover {
  color: #fff;
  background: rgba(31, 122, 242, 0.16);
}

.garage-tree-service {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(115, 167, 230, 0.14);
}

.garage-tree-section {
  display: flex;
  gap: 9px;
  align-items: center;
  width: 100%;
  min-height: 38px;
  padding: 0 8px;
  color: var(--blue-soft);
  font: inherit;
  text-align: left;
  border: 0;
  border-radius: 4px;
  background: rgba(31, 122, 242, 0.13);
  cursor: pointer;
}

.garage-tree-section:hover {
  color: #fff;
  background: rgba(31, 122, 242, 0.22);
}

.garage-tree-children {
  display: grid;
  gap: 1px;
  margin: 2px 0 0 18px;
  padding-left: 8px;
  border-left: 1px solid rgba(115, 167, 230, 0.2);
}

.garage-tree-service-item {
  min-height: 31px;
  padding-left: 8px;
  font-size: 13px;
}

.garage-tree-chevron {
  color: var(--blue-soft);
  border-color: rgba(115, 167, 230, 0.3);
  background: rgba(4, 11, 20, 0.4);
}

.garage-main {
  background: rgba(7, 17, 29, 0.46);
}

.garage-main-head,
.garage-group-card small {
  border-color: rgba(115, 167, 230, 0.18);
}

.garage-main-head h2,
.garage-group-card,
.garage-group-card b {
  color: var(--text);
}

.garage-group-card {
  border-right-color: rgba(115, 167, 230, 0.18);
  border-bottom-color: rgba(115, 167, 230, 0.18);
  background: rgba(4, 11, 20, 0.3);
}

.garage-group-card:hover {
  border-color: rgba(70, 168, 255, 0.72);
  background: rgba(31, 122, 242, 0.16);
  box-shadow: inset 0 0 0 2px rgba(70, 168, 255, 0.24);
}

.garage-group-card small {
  color: var(--muted);
}

.garage-group-card small i {
  color: var(--blue-soft);
}

.garage-placeholder {
  color: rgba(117, 190, 255, 0.42);
}

@media (max-width: 760px) {
  .garage-tabs {
    gap: 18px;
    padding: 0 16px;
  }

  .garage-sidebar {
    border-right: 0;
    border-bottom-color: rgba(115, 167, 230, 0.18);
  }

  .garage-main {
    padding: 16px;
  }
}
