.oil-family-switch {
  --oil-purple: #2f2144;
  --oil-purple-2: #4a3470;
  --oil-yellow: #f0bd35;
  background: #18131f;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.oil-family-switch__inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
}

.oil-family-switch__label {
  display: grid;
  gap: 3px;
  font-size: 13px;
  line-height: 1.4;
  color: #c9bbd9;
}

.oil-family-switch__label strong {
  color: #fff;
  font-size: 18px;
  letter-spacing: .08em;
}

.oil-family-switch__views {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.oil-family-switch__view {
  min-width: 0;
  min-height: 68px;
  padding: 12px 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 15px;
  background: rgba(255,255,255,.07);
  color: #fff;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.oil-family-switch__view:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.48);
  background: rgba(255,255,255,.12);
}

.oil-family-switch__view[aria-current="page"] {
  border-color: var(--oil-yellow);
  background: linear-gradient(135deg, var(--oil-purple-2), var(--oil-purple));
  box-shadow: 0 0 0 1px rgba(240,189,53,.2), 0 14px 30px rgba(0,0,0,.2);
}

.oil-family-switch__index {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,.12);
  color: var(--oil-yellow);
  font: 900 14px/1 system-ui, sans-serif;
}

.oil-family-switch__copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.oil-family-switch__copy strong {
  overflow: hidden;
  color: #fff;
  font-size: 18px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.oil-family-switch__copy small {
  overflow: hidden;
  color: #cfc4da;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.oil-family-switch__arrow {
  color: var(--oil-yellow);
  font-size: 20px;
  font-weight: 900;
}

@media (max-width: 780px) {
  .oil-family-switch__inner {
    width: min(100% - 28px, 620px);
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px 0 16px;
  }

  .oil-family-switch__label {
    grid-template-columns: auto 1fr;
    align-items: baseline;
    gap: 10px;
  }

  .oil-family-switch__label strong { font-size: 16px; }
  .oil-family-switch__views { gap: 8px; }
  .oil-family-switch__view {
    min-height: 76px;
    padding: 11px 12px;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 9px;
  }
  .oil-family-switch__index { width: 28px; height: 28px; border-radius: 8px; }
  .oil-family-switch__copy strong { font-size: 16px; white-space: normal; }
  .oil-family-switch__copy small { display: none; }
  .oil-family-switch__arrow { display: none; }
}

@media (max-width: 420px) {
  .oil-family-switch__inner { width: calc(100% - 20px); }
  .oil-family-switch__view { min-height: 70px; padding: 10px; }
  .oil-family-switch__copy strong { font-size: 15px; }
}
